leo/tests/compiler/field/ternary.leo

5 lines
110 B
Plaintext
Raw Normal View History

function main(s: bool, a: field, b: field, c: field) {
const r = s ? a : b;
2020-08-17 05:14:26 +03:00
console.assert(r == c);
2020-06-03 02:06:25 +03:00
}