| 1 | comptime { |
| 2 | const x = switch (true) { |
| 3 | true => false, |
| 4 | }; |
| 5 | _ = x; |
| 6 | } |
| 7 | comptime { |
| 8 | const x = switch (true) { |
| 9 | false => true, |
| 10 | }; |
| 11 | _ = x; |
| 12 | } |
| 13 | |
| 14 | // error |
| 15 | // |
| 16 | // :2:15: error: switch must handle all possibilities |
| 17 | // :8:15: error: switch must handle all possibilities |