1
1
mirror of https://github.com/AleoHQ/leo.git synced 2025-01-01 14:28:52 +03:00
leo/compiler/tests/field/ternary.leo
2020-08-16 19:14:26 -07:00

5 lines
111 B
Plaintext

function main(s: bool, a: field, b: field, c: field) {
let r = if s ? a : b;
console.assert(r == c);
}