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

11 lines
199 B
Plaintext

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