From 67694c0df07c758effbc7dcb10c76a2b2bffe5d0 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 17 Sep 2016 11:39:08 +0100 Subject: VarDecl and ConstDecl split; error, warning, et al. now global --- src/checker/entity.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/checker/entity.cpp') diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp index 3a4ffb191..fd9c5ce8a 100644 --- a/src/checker/entity.cpp +++ b/src/checker/entity.cpp @@ -67,6 +67,9 @@ struct Entity { }; b32 is_entity_exported(Entity *e) { + if (e->kind == Entity_ImportName) { + return false; + } // TODO(bill): Do I really want non-exported entities? // if (e->token.string.len >= 1 && // e->token.string.text[0] == '_') { -- cgit v1.2.3