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

5 lines
104 B
Plaintext

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