leo/asg/tests/pass/integers/u32/ternary.leo

5 lines
104 B
Plaintext

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