From a6fb2dd5877cf1af1911451d31bf3ba042315c57 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 17 Mar 2019 20:43:54 +0000 Subject: Fix Erroneous redeclaration error with `using import` #354 --- src/checker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/checker.cpp') 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 -- cgit v1.2.3