| ... | ... | @@ -8916,6 +8916,10 @@ fn zirSwitchBlock(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError |
| 8916 | 8916 | |
| 8917 | 8917 | if (special_prong == .@"else" and seen_errors.count() == operand_ty.errorSetNames().len) { |
| 8918 | 8918 | |
| 8919 | // TODO re-enable if defer implementation is improved |
| 8920 | // https://github.com/ziglang/zig/issues/11798 |
| 8921 | if (true) break :else_validation; |
| 8922 | |
| 8919 | 8923 | // In order to enable common patterns for generic code allow simple else bodies |
| 8920 | 8924 | // else => unreachable, |
| 8921 | 8925 | // else => return, |