mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Allow intrinsics entities to be exported from other packages if wanted
This commit is contained in:
+1
-1
@@ -3515,7 +3515,7 @@ Entity *check_selector(CheckerContext *c, Operand *operand, Ast *node, Type *typ
|
|||||||
if (entity->kind == Entity_Builtin) {
|
if (entity->kind == Entity_Builtin) {
|
||||||
// NOTE(bill): Builtin's are in the universal scope which is part of every scopes hierarchy
|
// NOTE(bill): Builtin's are in the universal scope which is part of every scopes hierarchy
|
||||||
// This means that we should just ignore the found result through it
|
// This means that we should just ignore the found result through it
|
||||||
allow_builtin = entity->scope == import_scope;
|
allow_builtin = entity->scope == import_scope || entity->scope != builtin_pkg->scope;
|
||||||
} else if ((entity->scope->flags&ScopeFlag_Global) == ScopeFlag_Global && (import_scope->flags&ScopeFlag_Global) == 0) {
|
} else if ((entity->scope->flags&ScopeFlag_Global) == ScopeFlag_Global && (import_scope->flags&ScopeFlag_Global) == 0) {
|
||||||
is_declared = false;
|
is_declared = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user