diff options
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |