summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.c b/types.c
index 8a097f7..d4bac24 100644
--- a/types.c
+++ b/types.c
@@ -501,11 +501,11 @@ static bool type_resolve(Typer *tr, Type *t, Location where) {
Value typeval;
if (!types_expr(tr, t->expr))
return false;
- print_expr(t->expr);
- t->was_expr = t->expr;
+ Expression *expr = t->expr;
if (!eval_expr(tr->evalr, t->expr, &typeval))
return false;
*t = *typeval.type;
+ t->was_expr = expr;
assert(t->flags & TYPE_IS_RESOLVED);
} break;
case TYPE_UNKNOWN: