mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #5228
This commit is contained in:
@@ -2855,6 +2855,7 @@ gb_internal void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags)
|
|||||||
case Ast_BlockStmt:
|
case Ast_BlockStmt:
|
||||||
case Ast_IfStmt:
|
case Ast_IfStmt:
|
||||||
case Ast_SwitchStmt:
|
case Ast_SwitchStmt:
|
||||||
|
case Ast_TypeSwitchStmt:
|
||||||
if (token.kind != Token_break) {
|
if (token.kind != Token_break) {
|
||||||
error(bs->label, "Label '%.*s' can only be used with 'break'", LIT(e->token.string));
|
error(bs->label, "Label '%.*s' can only be used with 'break'", LIT(e->token.string));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user