aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/attempted_double_ampersand.zig
blob: 7c9733ee9f94d7db0b29cc318ae76b18c48f07fd (plain)
1
2
3
4
5
6
7
8
9
10
export fn entry(a: bool, b: bool) i32 {
    if (a && b) {
        return 1234;
    }
    return 5678;
}

// error
//
// :2:11: error: ambiguous use of '&&'; use 'and' for logical AND, or change whitespace to ' & &' for bitwise AND