summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.c b/types.c
index e744fb7..891e525 100644
--- a/types.c
+++ b/types.c
@@ -1058,6 +1058,7 @@ static bool types_expr(Typer *tr, Expression *e) {
if (curr->next_elif) {
IfExpr *nexti = &curr->next_elif->if_;
Type *next_type = &curr->next_elif->type;
+ curr->next_elif->flags |= EXPR_FOUND_TYPE;
if (!types_block(tr, &nexti->body)) {
return false;
}