leo/tests/compiler/group/ternary.leo
2022-08-01 15:33:26 -07:00

12 lines
210 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: inputs/point.in
*/
function main(a: group, b: group, c: group) -> bool {
const r: group = true ? a : b;
console.assert(r == c);
return r == c;
}