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

5 lines
102 B
Plaintext

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