blob: 22b8c1e58c732c4ad7125772fa47562655e80adc (
plain)
1
2
3
4
5
6
7
8
9
10
|
export fn foo() void {
while (bar()) |x| {_ = x;}
}
fn bar() bool { return true; }
// error
// backend=stage2
// target=native
//
// :2:15: error: expected optional type, found 'bool'
|