aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-09-25 22:53:59 +0100
committerGinger Bill <bill@gingerbill.org>2017-09-25 22:53:59 +0100
commitae17a51c0dc1e488fb4241323c9eafdae632fd34 (patch)
treeab38208c7f866feefa10fa5e58906ed0d282c307 /src/check_expr.cpp
parentee7a83f124135ca12f70a0b75a274d802c22c298 (diff)
Fix issue #109
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 8c38d7441..9357ebc61 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -750,7 +750,7 @@ void populate_using_entity_map(Checker *c, AstNode *node, Type *t, Map<Entity *>
String name = f->token.string;
HashKey key = hash_string(name);
Entity **found = map_get(entity_map, key);
- if (found != nullptr) {
+ if (found != nullptr && name != "_") {
Entity *e = *found;
// TODO(bill): Better type error
if (str != nullptr) {