leo/asg/tests/pass/statements/conditional/nested.leo

12 lines
169 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
function main(a: bool, b: bool, c: u32) {
let d = 0u32;
2021-01-25 18:17:42 +03:00
if a {
d += 1;
if b {
d += 2;
}
}
console.assert(d == c);
}