leo/compiler/tests/statements/conditional/nested.leo
2020-07-17 12:59:18 -07:00

12 lines
177 B
Plaintext

function main(a: bool, b: bool) -> u32 {
let mut result = 0u32;
if a {
result += 1;
if b {
result += 2;
}
}
return result
}