aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-13 18:43:21 +0100
committergingerBill <bill@gingerbill.org>2018-05-13 18:43:21 +0100
commit9f1dda701d3cc7d235619d61443c1872f79cbb63 (patch)
tree3e5405a3fd969a919406e12b4cc19847209a8ae5 /src/parser.cpp
parente597a8d72eba1241b944fee48c0be4d6203acc4c (diff)
Comment out test
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp8
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");