leo/compiler/tests/integers/i128/ternary.leo
2020-08-16 19:14:26 -07:00

5 lines
108 B
Plaintext

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