mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
Fix #209 #assert bug
This commit is contained in:
@@ -1012,8 +1012,10 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type *
|
||||
|
||||
|
||||
if (e->type == nullptr) {
|
||||
if (e->state == EntityState_Unresolved) {
|
||||
return nullptr;
|
||||
}
|
||||
compiler_error("How did this happen? type: %s; identifier: %.*s\n", type_to_string(e->type), LIT(name));
|
||||
// return nullptr;
|
||||
}
|
||||
|
||||
e->flags |= EntityFlag_Used;
|
||||
|
||||
Reference in New Issue
Block a user