mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-14 09:44:26 +00:00
fix: instantiated procs keep their own scope
Was this check here for a reason? Investigate
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user