diff options
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1956,6 +1956,7 @@ static bool types_decl(Typer *tr, Declaration *d) { success = false; goto ret; } + d->expr.type = d->type; } else { if (d->expr.type.kind == TYPE_VOID) { /* e.g. x := (fn(){})(); */ |