leo/compiler/tests/statement/ternary_basic.leo

3 lines
54 B
Plaintext

function main(b: bool) -> u32 {
return if b? 1 : 0
}