leo/compiler/tests/group/ternary.leo

5 lines
110 B
Plaintext

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