summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-07 02:08:47 -0500
committerGitHub <noreply@github.com>2025-11-07 02:08:47 -0500
commit8d1626323b163cbce7b467b20d66c723e7605332 (patch)
tree062d0e65091052e2b0b92a6c31ec3bba4ddfcbb2
parent45f6b8b4d60385907239e1cc8af3d233385253a7 (diff)
parent128da8cb1b72ecfcb6bac36e994c0f93df00bdd1 (diff)
Merge pull request #1163 from BradLewis/fix/when-block-infinite-loop
-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
}
}
}