Merge pull request #5689 from slowhei/master

Improve type inferencing of literals when calling proc groups
This commit is contained in:
gingerBill
2025-09-26 14:13:05 +01:00
committed by GitHub
2 changed files with 160 additions and 0 deletions

View File

@@ -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++;
}
}