leo/asg/tests/pass/integers/i64/ternary.leo

5 lines
102 B
Plaintext

function main(s: bool, a: i64, b: i64, c: i64) {
let r = s ? a : b;
console.assert(r == c);
}