kw literal
Contextual keyword — comptime literal fn (§15.3)
The list of words: §1.4
Syntax
Fn = [ "comptime" [ "literal" ] | "unsafe" ] "fn" Ident [ Generics ] "(" [ Params ] ")"
[ "->" Type ] [ Effects ] [ Where ] { Contract } ( Block | "=>" Expr ) ;Grammar: App. A
Defined in
- 1.4 Keywords — Reserved (cannot be used as names)
- 1.5 Literals — Rules:
- 15.3 Prefixed literals — comptime literal fn re(s
Related diagnostics
bad-format-spec, invalid-char-literal, invalid-date, invalid-duration, invalid-escape, invalid-number, literal-overflow, unterminated-string, prefix-literal