OxL Справочник OxL
РусскийEnglish

op ,

,

Определяется в

Примеры

oxl
operator <|> <T>(a: Parser<T>, b: Parser<T>) -> Parser<T>  infixl 3 => a.orElse(b)
operator ~~ (s: str, re: Regex) -> bool                      infix 4 => re.matches(s)
operator ^^ (a: f64, b: f64) -> f64                          infixr 12 => a.pow(b)
operator ¬ (b: Bits) -> Bits                                prefix => b.invert()

— 5.3 Перегрузка и пользовательские операторы

oxl
enum Principal {
  User(id: UserId, roles: Set<AppRole>, claims: Map<str, str>, mfa: bool, tenant: str?)
  Service(name: str, role: str)
  Node(id: NodeId)
  Anonymous
}

— 13.2 Аутентификация

Связанные диагностики

chained-comparison, not-callable, not-overloadable, operator-decl, range-not-iterable, invalid-char, cluster-auth, attribute-not-applicable, cache-not-readonly, invalid-window, retry-not-idempotent, rpc-attr, bad-init, missing-field

См. также