| 1 | export fn entry() void { |
| 2 | var a: u32 = 0; |
| 3 | while (true) switch (a) { |
| 4 | 0 => 2, |
| 5 | 1 => a = 0, |
| 6 | else => break, |
| 7 | }; |
| 8 | } |
| 9 | |
| 10 | // error |
| 11 | // |
| 12 | // :3:18: error: incompatible types: 'comptime_int' and 'void' |
| 13 | // :4:14: note: type 'comptime_int' here |
| 14 | // :5:16: note: type 'void' here |