leo/tests/compiler/_group/ternary.leo

5 lines
110 B
Plaintext
Raw Normal View History

2020-07-30 22:54:34 +03:00
function main(s: bool, a: group, b: group, c: group) {
const r = s ? a : b;
2020-06-02 03:23:13 +03:00
2020-08-17 05:14:26 +03:00
console.assert(r == c);
2020-06-02 03:23:13 +03:00
}