leo/tests/pass/parse/statements/ternary_basic.leo

5 lines
90 B
Plaintext

function main(a: bool, b: bool) {
const c = a ? true : false;
const d = c == b;
}