mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 10:52:19 +00:00
Fix error reporting for type cycles
This commit is contained in:
@@ -1738,7 +1738,7 @@ gb_internal Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *nam
|
||||
if (check_cycle(c, e, true)) {
|
||||
o->type = t_invalid;
|
||||
}
|
||||
if (o->type != nullptr && type->kind == Type_Named && o->type->Named.type_name->TypeName.is_type_alias) {
|
||||
if (o->type != nullptr && o->type->kind == Type_Named && o->type->Named.type_name->TypeName.is_type_alias) {
|
||||
o->type = base_type(o->type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user