leo/tests/old/pass/field/ternary.leo
2021-04-12 13:15:39 -07:00

5 lines
110 B
Plaintext

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