leo/tests/compiler/_group/ternary.leo
2021-05-05 17:48:33 +03:00

5 lines
110 B
Plaintext

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