mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix error reporting for type cycles
This commit is contained in:
+1
-1
@@ -1738,7 +1738,7 @@ gb_internal Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *nam
|
|||||||
if (check_cycle(c, e, true)) {
|
if (check_cycle(c, e, true)) {
|
||||||
o->type = t_invalid;
|
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);
|
o->type = base_type(o->type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user