aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-07 02:04:25 -0500
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-07 02:04:25 -0500
commit128da8cb1b72ecfcb6bac36e994c0f93df00bdd1 (patch)
tree062d0e65091052e2b0b92a6c31ec3bba4ddfcbb2 /src
parent45f6b8b4d60385907239e1cc8af3d233385253a7 (diff)
Fix issue with when else statements getting stuck in an infinite loop
Diffstat (limited to 'src')
-rw-r--r--src/server/ast.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/ast.odin b/src/server/ast.odin
index bee9ca9..e44a093 100644
--- a/src/server/ast.odin
+++ b/src/server/ast.odin
@@ -501,6 +501,7 @@ get_when_block_stmt :: proc(when_decl: ^ast.When_Stmt) -> (^ast.Block_Stmt, bool
if block, ok := else_stmt.derived.(^ast.Block_Stmt); ok {
return block, true
}
+ return nil, false
}
}
}