commit cedb44f6e9d288ea5cd770a5eef36ee424e62b7b
parent e444f9df4be838ca3e17e8f407406f0d1c32aafb
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 2 Feb 2021 15:03:38 -0500
Allow complex expression in simple bindings
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/parse.c b/src/parse.c
@@ -1865,7 +1865,7 @@ parse_binding_list(struct lexer *lexer, bool is_static)
binding->initializer = parse_complex_expression(lexer);
break;
case T_EQUAL:
- binding->initializer = parse_simple_expression(lexer);
+ binding->initializer = parse_complex_expression(lexer);
break;
default:
synassert(false, &tok, T_COLON, T_COMMA, T_EOF);