This commit is contained in:
gingerBill
2024-08-18 12:13:52 +01:00
parent 60b2979cfd
commit f82bf6cd42
+1 -1
View File
@@ -1478,7 +1478,7 @@ gb_internal void check_type_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_
case_type = nullptr; case_type = nullptr;
} }
if (case_type == nullptr) { if (case_type == nullptr) {
case_type = x.type; case_type = type_deref(x.type);
} }
if (switch_kind == TypeSwitch_Any) { if (switch_kind == TypeSwitch_Any) {
if (!is_type_untyped(case_type)) { if (!is_type_untyped(case_type)) {