leo/tests/compiler/field/ternary.leo

10 lines
183 B
Plaintext

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