diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-09-25 22:53:59 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-09-25 22:53:59 +0100 |
| commit | ae17a51c0dc1e488fb4241323c9eafdae632fd34 (patch) | |
| tree | ab38208c7f866feefa10fa5e58906ed0d282c307 /src/check_expr.cpp | |
| parent | ee7a83f124135ca12f70a0b75a274d802c22c298 (diff) | |
Fix issue #109
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
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) { |