leo/asg/tests/pass/integers/i16/ternary.leo
2021-01-25 07:19:38 -08:00

5 lines
105 B
Plaintext

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