leo/compiler/tests/group/ternary.leo

5 lines
105 B
Plaintext
Raw Normal View History

2020-07-30 22:54:34 +03:00
function main(s: bool, a: group, b: group, c: group) {
let r = if s ? a : b;
2020-06-02 03:23:13 +03:00
2020-07-30 22:54:34 +03:00
assert_eq!(r, c);
2020-06-02 03:23:13 +03:00
}