fix: record resolved entity for proc-typed default values

This commit is contained in:
Brody
2026-08-03 22:26:24 +10:00
parent 87b514890c
commit 91e0e6ce47
8 changed files with 86 additions and 13 deletions

View File

@@ -412,7 +412,7 @@ gb_internal bool find_or_generate_polymorphic_procedure(CheckerContext *old_c, E
if (!src->Proc.is_polymorphic || src->Proc.is_poly_specialized) {
// NOTE: polymorphic procedure check not idempotent without this
if (src->Proc.is_poly_specialized && base_entity->Procedure.generated_from_polymorphic) {
if (are_types_identical(src, dst)) {
if (are_types_identical(src, dst)) {
if (poly_proc_data) {
poly_proc_data->gen_entity = base_entity;
}