leo/tests/pass/parse/group/ternary.leo
2021-03-03 09:59:24 -08:00

5 lines
111 B
Plaintext

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