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

5 lines
104 B
Plaintext

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