diff options
Diffstat (limited to 'src/check_decl.c')
| -rw-r--r-- | src/check_decl.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/check_decl.c b/src/check_decl.c index ebee92b5e..bc49e36c1 100644 --- a/src/check_decl.c +++ b/src/check_decl.c @@ -72,25 +72,14 @@ void check_init_variables(Checker *c, Entity **lhs, isize lhs_count, AstNodeArra } } - isize max = gb_min(lhs_count, rhs_count); for (isize i = 0; i < max; i++) { check_init_variable(c, lhs[i], &operands.e[i], context_name); } - if (rhs_count > 0 && lhs_count != rhs_count) { error(lhs[0]->token, "Assignment count mismatch `%td` = `%td`", lhs_count, rhs_count); } -#if 0 - if (lhs[0]->kind == Entity_Variable && - lhs[0]->Variable.is_let) { - if (lhs_count != rhs_count) { - error(lhs[0]->token, "`let` variables must be initialized, `%td` = `%td`", lhs_count, rhs_count); - } - } -#endif - gb_temp_arena_memory_end(tmp); } |