diff options
| author | gingerBill <bill@gingerbill.org> | 2019-09-08 12:12:41 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-09-08 12:12:41 +0100 |
| commit | 4afc78efc682152a9b096781a1598fd1841ca938 (patch) | |
| tree | 9aecfa8070f2e26c73ce00fe95e6651a5175a77f /src/checker.cpp | |
| parent | d54255505a1b7b2a460ce7f4a18ea30a92286aa1 (diff) | |
Add `where` clauses to `struct` and `union`
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
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): |