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

5 lines
105 B
Plaintext

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