diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-11 19:01:36 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-11 19:01:36 +0100 |
| commit | 2d73c8868b62dd3555409ee4522205d670ddeb42 (patch) | |
| tree | b5a3f9e2c88175c1f9896b4e93f1e282cbb4e211 /src/parser.cpp | |
| parent | b95bb1286b0d8e09dc4f97092030a12c775dcf5d (diff) | |
Make default arguments for records invalid syntax
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 2feaa1fc2..8971ca7ad 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2841,7 +2841,7 @@ AstNode *parse_field_list(AstFile *f, isize *name_count_, u32 allowed_flags, Tok Array<AstNodeAndFlags> list = {}; array_init(&list, heap_allocator()); // LEAK(bill): isize total_name_count = 0; bool allow_ellipsis = allowed_flags&FieldFlag_ellipsis; - bool is_procedure = (allowed_flags&FieldFlag_Signature) != 0; + bool is_procedure = allowed_flags == FieldFlag_Signature; while (f->curr_token.kind != follow && f->curr_token.kind != Token_Colon && |