mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-06 04:57:55 +00:00
Merge pull request #5689 from slowhei/master
Improve type inferencing of literals when calling proc groups
This commit is contained in:
@@ -7007,6 +7007,10 @@ gb_internal CallArgumentData check_call_arguments_proc_group(CheckerContext *c,
|
||||
array_unordered_remove(&procs, proc_index);
|
||||
continue;
|
||||
}
|
||||
if (!pt->Proc.variadic && max_arg_count != ISIZE_MAX && param_count < max_arg_count) {
|
||||
array_unordered_remove(&procs, proc_index);
|
||||
continue;
|
||||
}
|
||||
proc_index++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user