aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-09-08 12:12:41 +0100
committergingerBill <bill@gingerbill.org>2019-09-08 12:12:41 +0100
commit4afc78efc682152a9b096781a1598fd1841ca938 (patch)
tree9aecfa8070f2e26c73ce00fe95e6651a5175a77f /src/checker.cpp
parentd54255505a1b7b2a460ce7f4a18ea30a92286aa1 (diff)
Add `where` clauses to `struct` and `union`
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 8fe71b63c..994e0776d 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -3157,7 +3157,7 @@ void check_add_import_decl(CheckerContext *ctx, Ast *decl) {
Entity *e = scope->elements.entries[elem_index].value;
if (e->scope == parent_scope) continue;
- if (is_entity_exported(e)) {
+ if (is_entity_exported(e, true)) {
Entity *found = scope_lookup_current(parent_scope, name);
if (found != nullptr) {
// NOTE(bill):