mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-25 05:09:53 +00:00
Merge pull request #6701 from Creativty/fix_poly_proc_nil
Fix nil typing when procedure call argument
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user