diff options
| author | gingerBill <bill@gingerbill.org> | 2018-05-13 18:43:21 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-05-13 18:43:21 +0100 |
| commit | 9f1dda701d3cc7d235619d61443c1872f79cbb63 (patch) | |
| tree | 3e5405a3fd969a919406e12b4cc19847209a8ae5 /src/parser.cpp | |
| parent | e597a8d72eba1241b944fee48c0be4d6203acc4c (diff) | |
Comment out test
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 289a30864..d0128b7dd 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2959,10 +2959,10 @@ AstNode *parse_field_list(AstFile *f, isize *name_count_, u32 allowed_flags, Tok syntax_error(f->curr_token, "Default parameters can only be applied to single values"); } - if (allowed_flags == FieldFlag_Struct && default_value != nullptr) { - syntax_error(default_value, "Default parameters are not allowed for structs"); - default_value = nullptr; - } + // if (allowed_flags == FieldFlag_Struct && default_value != nullptr) { + // syntax_error(default_value, "Default parameters are not allowed for structs"); + // default_value = nullptr; + // } if (type != nullptr && type->kind == AstNode_Ellipsis) { if (seen_ellipsis) syntax_error(type, "Extra variadic parameter after ellipsis"); |