mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix issue #109
This commit is contained in:
+1
-1
@@ -750,7 +750,7 @@ void populate_using_entity_map(Checker *c, AstNode *node, Type *t, Map<Entity *>
|
|||||||
String name = f->token.string;
|
String name = f->token.string;
|
||||||
HashKey key = hash_string(name);
|
HashKey key = hash_string(name);
|
||||||
Entity **found = map_get(entity_map, key);
|
Entity **found = map_get(entity_map, key);
|
||||||
if (found != nullptr) {
|
if (found != nullptr && name != "_") {
|
||||||
Entity *e = *found;
|
Entity *e = *found;
|
||||||
// TODO(bill): Better type error
|
// TODO(bill): Better type error
|
||||||
if (str != nullptr) {
|
if (str != nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user