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

5 lines
104 B
Plaintext

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