leo/asg/tests/pass/statements/conditional/nested.leo
2021-01-25 07:19:38 -08:00

12 lines
173 B
Plaintext

function main(a: bool, b: bool, c: u32) {
let mut d = 0u32;
if a {
d += 1;
if b {
d += 2;
}
}
console.assert(d == c);
}