aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-10-08 11:08:15 +0100
committerGinger Bill <bill@gingerbill.org>2017-10-08 11:08:15 +0100
commit580ee5cc4afb6ee15785e57747559d885af16d55 (patch)
treef76d11974faa7a1a77b5a9c17aceb342518b26f9 /src/checker.cpp
parent56a98a483f34cf5a76d583a6b55a586ceb83084b (diff)
Fix `using` on import names
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index b8893cccd..0dcebc546 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2521,9 +2521,6 @@ void check_add_import_decl(Checker *c, AstNodeImportDecl *id) {
Entity *e = scope->elements.entries[elem_index].value;
if (e->scope == parent_scope) return;
- if (!is_entity_kind_exported(e->kind)) {
- return;
- }
if (is_entity_exported(e)) {
// TODO(bill): Should these entities be imported but cause an error when used?
bool ok = add_entity(c, parent_scope, e->identifier, e);