Merge pull request #6701 from Creativty/fix_poly_proc_nil

Fix nil typing when procedure call argument
This commit is contained in:
gingerBill
2026-05-18 15:00:18 +01:00
committed by GitHub

View File

@@ -6674,6 +6674,8 @@ gb_internal CallArgumentError check_call_arguments_internal(CheckerContext *c, A
if (!context_allocator_error) {
ordered_operands[i].mode = Addressing_Value;
ordered_operands[i].type = e->type;
if (e->Variable.param_value.kind == ParameterValue_Nil)
ordered_operands[i].type = t_untyped_nil;
ordered_operands[i].expr = e->Variable.param_value.original_ast_expr;
dummy_argument_count += 1;