This commit is contained in:
gingerBill
2022-11-21 10:25:34 +00:00
parent c663566cd5
commit 27d56d0da4
3 changed files with 6 additions and 0 deletions

View File

@@ -5525,6 +5525,8 @@ CALL_ARGUMENT_CHECKER(check_named_call_arguments) {
GB_ASSERT(is_type_proc(gept));
proc_type = gept;
pt = &gept->Proc;
} else {
err = CallArgumentError_WrongTypes;
}
}
@@ -6156,6 +6158,7 @@ CallArgumentData check_call_arguments(CheckerContext *c, Operand *operand, Type
}
result_type = t_invalid;
} else {
GB_ASSERT(valids.count == 1);
Ast *ident = operand->expr;
while (ident->kind == Ast_SelectorExpr) {
Ast *s = ident->SelectorExpr.selector;