From 7853a1db1c1ab3662767d14da055e59a7434ebcd Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 29 May 2025 16:35:28 +0100 Subject: Fix #5228 --- src/check_stmt.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/check_stmt.cpp') 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)); } -- cgit v1.2.3