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

5 lines
102 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
function main(s: bool, a: u16, b: u16, c: u16) {
let r = s ? a : b;
2021-01-25 18:17:42 +03:00
console.assert(r == c);
}