Skip to content

Commit

Permalink
Disallow anytype return types
Browse files Browse the repository at this point in the history
This proposed feature has been rejected, see:
ziglang/zig#447
  • Loading branch information
ifreund committed May 10, 2021
1 parent ad3d1ad commit a47c641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammar/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ TopLevelDecl
/ (KEYWORD_export / KEYWORD_extern STRINGLITERALSINGLE?)? KEYWORD_threadlocal? VarDecl
/ KEYWORD_usingnamespace Expr SEMICOLON

FnProto <- KEYWORD_fn IDENTIFIER? LPAREN ParamDeclList RPAREN ByteAlign? LinkSection? CallConv? EXCLAMATIONMARK? (KEYWORD_anytype / TypeExpr)
FnProto <- KEYWORD_fn IDENTIFIER? LPAREN ParamDeclList RPAREN ByteAlign? LinkSection? CallConv? EXCLAMATIONMARK? TypeExpr

VarDecl <- (KEYWORD_const / KEYWORD_var) IDENTIFIER (COLON TypeExpr)? ByteAlign? LinkSection? (EQUAL Expr)? SEMICOLON

Expand Down

0 comments on commit a47c641

Please sign in to comment.