leo/tests/compiler/group/ternary.leo

12 lines
210 B
Plaintext
Raw Normal View History

/*
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);
2022-06-02 19:39:49 +03:00
return r == c;
}