leo/compiler/tests/integers/i128/ternary.leo

5 lines
107 B
Plaintext

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