leo/compiler/tests/integers/i32/ternary.leo
2021-03-08 14:45:38 -08:00

5 lines
102 B
Plaintext

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