mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-26 06:51:34 +00:00
Enforce explicit context definition for procedure calls
This commit is contained in:
@@ -281,6 +281,7 @@ Scope *create_scope_from_package(CheckerContext *c, AstPackage *pkg) {
|
||||
if (s->flags & (ScopeFlag_Init|ScopeFlag_Global)) {
|
||||
s->flags |= ScopeFlag_HasBeenImported;
|
||||
}
|
||||
s->flags |= ScopeFlag_ContextDefined;
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user