Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
attempted_double_ampersand.zig
pretty
plain
permalink
blame
history
•
10 lines
•
231 B
1
export fn entry(a: bool, b: bool) i32 {
2
if (a && b) {
3
return 1234;
4
}
5
return 5678;
6
}
7
8
// error
9
//
10
// :2:11: error: ambiguous use of '&&'; use 'and' for logical AND, or change whitespace to ' & &' for bitwise AND