diff options
| author | gingerBill <bill@gingerbill.org> | 2023-02-17 13:00:37 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-02-17 13:00:37 +0000 |
| commit | 8a2a70a3c2a7ac14687d100325e12b8d3d02256e (patch) | |
| tree | 489a1432554e70596c1c44637df84d5c5edcc938 /src/check_expr.cpp | |
| parent | 210f47b8abef40db3229e772e6063d044fa4c895 (diff) | |
Fix overriding procedure information for literals
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 58372f7a3..93db559f8 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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; |