leo/asg/tests/pass/statements/ternary_basic.leo

5 lines
91 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
function main(a: bool, b: bool) {
let c = if a ? true : false;
const d = c == b;
}