Fix Erroneous redeclaration error with using import #354
This commit is contained in:
1 parent
4e93b70f8a
commit
a6fb2dd587
1 file changed
+1
-1
+1
-1
@@ -3064,7 +3064,7 @@ void check_add_import_decl(CheckerContext *ctx, Ast *decl) {
|
|||||||
if (e->scope == parent_scope) continue;
|
if (e->scope == parent_scope) continue;
|
||||||
|
|
||||||
if (is_entity_exported(e)) {
|
if (is_entity_exported(e)) {
|
||||||
Entity *found = scope_lookup(parent_scope, name);
|
Entity *found = scope_lookup_current(parent_scope, name);
|
||||||
if (found != nullptr) {
|
if (found != nullptr) {
|
||||||
// NOTE(bill):
|
// NOTE(bill):
|
||||||
// Date: 2019-03-17
|
// Date: 2019-03-17
|
||||||
|
|||||||
Reference in new issue
Block a user