aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authormailgerigk <mailgerigk@users.noreply.github.com>2024-03-21 00:26:42 +0100
committerGitHub <noreply@github.com>2024-03-21 00:26:42 +0100
commit6a0d2ffcaca222ed38e4152f0d6f46492066e378 (patch)
tree3aa2e99f5bd1c189ef563b026e09adbd6244398d /src/check_stmt.cpp
parent800014e40c30f0cc97f6ad280b91575fb6025422 (diff)
parentfc587c507adce69d7025111ea2a3a40d7e9b373f (diff)
Merge branch 'odin-lang:master' into master
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 7cccab226..17502a6e2 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1365,6 +1365,8 @@ gb_internal void check_type_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_
}
if (unhandled.count > 0) {
+ ERROR_BLOCK();
+
if (unhandled.count == 1) {
gbString s = type_to_string(unhandled[0]);
error_no_newline(node, "Unhandled switch case: %s", s);