Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
while_expected_bool_got_optional.zig
pretty
plain
permalink
blame
history
•
10 lines
•
143 B
1
export fn foo() void {
2
while (bar()) {}
3
}
4
fn bar() ?i32 {
5
return 1;
6
}
7
8
// error
9
//
10
// :2:15: error: expected type 'bool', found '?i32'