leo/tests/compiler/integers/u64/ternary.leo
2021-04-19 18:08:14 -07:00

5 lines
104 B
Plaintext

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