From 9f1dda701d3cc7d235619d61443c1872f79cbb63 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 13 May 2018 18:43:21 +0100 Subject: Comment out test --- src/parser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/parser.cpp') 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"); -- cgit v1.2.3