aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-25 13:44:00 +0000
committergingerBill <bill@gingerbill.org>2024-03-25 13:44:00 +0000
commit50618759a65bfbc09e9f7b62878ecefff78ab1be (patch)
tree81e2013284e13e7067619b51964ccd3bdaea2f94 /src/check_expr.cpp
parent600ca83386c473aeae8c93fce34d4d1d3ab7d636 (diff)
Fix error reporting for type cycles
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 0dc6fdb02..a34b425c2 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -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);
}