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

5 lines
104 B
Plaintext

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