1export fn foo() void {
2 while (bar()) |x| {
3 _ = x;
4 }
5}
6fn bar() bool {
7 return true;
8}
9
10// error
11//
12// :2:15: error: expected optional type, found 'bool'