summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/types.c b/types.c
index 472acf3..91fe1fa 100644
--- a/types.c
+++ b/types.c
@@ -2843,6 +2843,10 @@ static Status types_stmt(Typer *tr, Statement *s) {
free(str);
}
}
+ if (tr->block == NULL) {
+ if (!eval_stmt(tr->evalr, s))
+ return false;
+ }
break;
case STMT_DECL:
if (!types_decl(tr, s->decl)) {