aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-05-29 16:35:28 +0100
committergingerBill <bill@gingerbill.org>2025-05-29 16:35:28 +0100
commit7853a1db1c1ab3662767d14da055e59a7434ebcd (patch)
treef54557c03861c1f58ff7934f754c7179a73fb1a7
parent74bab6d42faf02b26fc6690957277842a9462694 (diff)
Fix #5228
-rw-r--r--src/check_stmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 0460f5bec..6cacef3ee 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -2855,6 +2855,7 @@ gb_internal void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags)
case Ast_BlockStmt:
case Ast_IfStmt:
case Ast_SwitchStmt:
+ case Ast_TypeSwitchStmt:
if (token.kind != Token_break) {
error(bs->label, "Label '%.*s' can only be used with 'break'", LIT(e->token.string));
}