Fix check_arity_match bug

This commit is contained in:
gingerBill
2020-09-12 15:50:42 +01:00
parent bf215377de
commit ccb7c3513b
2 changed files with 32 additions and 3 deletions

View File

@@ -2087,8 +2087,8 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
}
}
check_arity_match(ctx, vd);
check_init_variables(ctx, entities, entity_count, vd->values, str_lit("variable declaration"));
check_arity_match(ctx, vd, false);
if (ctx->curr_proc_calling_convention == ProcCC_Pure) {
if (vd->values.count == 0) {