leo/tests/pass/parse/integers/u64/ternary.leo

5 lines
104 B
Plaintext

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