leo/tests/compiler/field/ternary.leo
2022-08-04 20:00:40 -07:00

11 lines
192 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file:
- inputs/fields.in
*/
@program
function main(a: field, b: field, c: field) -> bool {
return b == 1field ? a == 1field : c == 2field;
}