OxL Reference

kw literal

Contextual keyword — comptime literal fn (§15.3)

The list of words: §1.4

Syntax

ebnf
Fn          = [ "comptime" [ "literal" ] | "unsafe" ] "fn" Ident [ Generics ] "(" [ Params ] ")"
              [ "->" Type ] [ Effects ] [ Where ] { Contract } ( Block | "=>" Expr ) ;

Grammar: App. A

Defined in

Related diagnostics

bad-format-spec, invalid-char-literal, invalid-date, invalid-duration, invalid-escape, invalid-number, literal-overflow, unterminated-string, prefix-literal

See also