leo/asg/tests/pass/field/ternary.leo

5 lines
108 B
Plaintext

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