leo/compiler/tests/statements/ternary_basic.leo

5 lines
91 B
Plaintext

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