mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-07 13:33:13 +00:00
Fix type cycle bug
This commit is contained in:
@@ -984,7 +984,9 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type *
|
||||
}
|
||||
|
||||
add_entity_use(c, n, e);
|
||||
check_entity_decl(c, e, nullptr, named_type);
|
||||
if (e->state == EntityState_Unresolved) {
|
||||
check_entity_decl(c, e, nullptr, named_type);
|
||||
}
|
||||
|
||||
|
||||
if (e->type == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user