mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-13 12:36:36 -04:00
Fix overriding procedure information for literals
This commit is contained in:
1 parent
210f47b8ab
commit
8a2a70a3c2
7 files changed
+33
-11
No files matched your search
+3
-1
@@ -5418,7 +5418,9 @@ gb_internal CALL_ARGUMENT_CHECKER(check_call_arguments_internal) {
|
||||
data->score = score;
|
||||
data->result_type = final_proc_type->Proc.results;
|
||||
data->gen_entity = gen_entity;
|
||||
add_type_and_value(c, ce->proc, Addressing_Value, final_proc_type, {});
|
||||
if (!are_types_identical(final_proc_type, ce->proc->tav.type)) {
|
||||
add_type_and_value(c, ce->proc, Addressing_Value, final_proc_type, {});
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
|
||||
Reference in new issue
Block a user