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

5 lines
101 B
Plaintext

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