Merge branch 'odin-lang:master' into master

This commit is contained in:
mailgerigk
2024-03-21 00:26:42 +01:00
committed by GitHub
11 changed files with 857 additions and 53 deletions
+2
View File
@@ -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);