aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-05-13 12:49:12 +0100
committergingerBill <bill@gingerbill.org>2024-05-13 12:49:12 +0100
commit8b4a8e4d806a9d8328c3aedf8175c681b42cb324 (patch)
tree203acb95f67cb17a0e9ef87c2b19b3084144bc0d /src/check_stmt.cpp
parent90f26368d9d82034b9d43dcd93afa50ede041ec1 (diff)
Fix #3569
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index ad91838b9..719a0da15 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -751,7 +751,7 @@ gb_internal bool check_using_stmt_entity(CheckerContext *ctx, AstUsingStmt *us,
for (auto const &entry : scope->elements) {
String name = entry.key;
Entity *decl = entry.value;
- if (!is_entity_exported(decl)) continue;
+ if (!is_entity_exported(decl, true)) continue;
Entity *found = scope_insert_with_name(ctx->scope, name, decl);
if (found != nullptr) {