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

5 lines
99 B
Plaintext

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