blob: 6770b5a0555c5b63297f15225dcbfc75d425ca4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
fn foo(x: u8) void {
switch (x) {
0 => {},
}
}
export fn entry() usize { return @sizeOf(@TypeOf(&foo)); }
// error
// backend=stage2
// target=native
//
// :2:5: error: switch must handle all possibilities
|