summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/types.c b/types.c
index d8928e5..17ed62c 100644
--- a/types.c
+++ b/types.c
@@ -3582,16 +3582,16 @@ top:
if (header->flags & DECL_USE) {
if (ident_eq_str(header->idents[0], "_")) {
err_print(header->where, "You have to name your for loop variable in order to use it (sorry).");
- return false;
+ goto for_fail;
}
if (!use_ident(tr, header->idents[0], val_type, header->where)) {
- return false;
+ goto for_fail;
}
}
+ typer_block_exit(tr);
if (!types_block(tr, &fo->body)) goto for_fail;
- typer_block_exit(tr);
} break;
for_fail:
if (in_header)