leo/tests/compiler/scalar/ternary.leo

10 lines
190 B
Plaintext
Raw Normal View History

2022-05-15 06:27:08 +03:00
/*
namespace: Compile
expectation: Pass
input_file:
- inputs/scalars.in
*/
function main(a: scalar, b: scalar, c: scalar) -> bool {
return b == 1scalar ? a == 1scalar : c == 2scalar;
}