fix: instantiated procs keep their own scope

Was this check here for a reason? Investigate
This commit is contained in:
Brody
2026-08-03 22:07:18 +10:00
parent cce1bdd8c7
commit 87b514890c

View File

@@ -466,9 +466,7 @@ gb_internal bool find_or_generate_polymorphic_procedure(CheckerContext *old_c, E
scope->flags |= ScopeFlag_Proc;
nctx.scope = scope;
nctx.allow_polymorphic_types = true;
if (nctx.polymorphic_scope == nullptr) {
nctx.polymorphic_scope = scope;
}
nctx.polymorphic_scope = scope;
auto *pt = &src->Proc;