aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-01-28 21:20:30 +0000
committergingerBill <bill@gingerbill.org>2024-01-28 21:20:30 +0000
commitd04c82e5471bb291cddbef883a36b1caad3b2b99 (patch)
tree526c2e3e55f40aa7c37909c9eece7307ff1b0e25 /src/check_expr.cpp
parent09fa1c29cd014b4560b3c79c72db68af20ef8187 (diff)
Move matrix compiler `builtin`s to `intrinsics`; alias within core_builtin_matrix.odin
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index f8c5540f4..a6081a1cc 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -4577,7 +4577,8 @@ gb_internal bool is_entity_declared_for_selector(Entity *entity, Scope *import_s
if (entity->kind == Entity_Builtin) {
// 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
- *allow_builtin = entity->scope == import_scope || entity->scope != builtin_pkg->scope;
+ *allow_builtin = entity->scope == import_scope ||
+ (entity->scope != builtin_pkg->scope && entity->scope != intrinsics_pkg->scope);
} else if ((entity->scope->flags&ScopeFlag_Global) == ScopeFlag_Global && (import_scope->flags&ScopeFlag_Global) == 0) {
is_declared = false;
}