leo/compiler/tests/group/ternary.leo
2020-07-30 12:54:34 -07:00

5 lines
105 B
Plaintext

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