aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-03-17 20:43:54 +0000
committergingerBill <bill@gingerbill.org>2019-03-17 20:43:54 +0000
commita6fb2dd5877cf1af1911451d31bf3ba042315c57 (patch)
treefb24c2b488be9a31f3a4f50ba1155af05476e9d9 /src/checker.cpp
parent4e93b70f8aefbba18f8db70e5e388bdbcf7b0a38 (diff)
Fix Erroneous redeclaration error with `using import` #354
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 3b161d95a..130c4aee5 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -3064,7 +3064,7 @@ void check_add_import_decl(CheckerContext *ctx, Ast *decl) {
if (e->scope == parent_scope) continue;
if (is_entity_exported(e)) {
- Entity *found = scope_lookup(parent_scope, name);
+ Entity *found = scope_lookup_current(parent_scope, name);
if (found != nullptr) {
// NOTE(bill):
// Date: 2019-03-17