Restrict global variables to not allow tuples

This commit is contained in:
Ginger Bill
2017-08-20 19:35:52 +01:00
parent f30d2e43ea
commit e5502c13ee
3 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -1757,7 +1757,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
}
}
check_arity_match(c, vd);
check_arity_match(c, vd, false);
check_init_variables(c, entities, entity_count, vd->values, str_lit("variable declaration"));
for (isize i = 0; i < entity_count; i++) {