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

5 lines
104 B
Plaintext

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