leo/tests/pass/parse/statements/nested.leo

12 lines
173 B
Plaintext
Raw Normal View History

2021-03-03 20:59:24 +03:00
function main(a: bool, b: bool, c: u32) {
let mut d = 0u32;
if a {
d += 1;
if b {
d += 2;
}
}
console.assert(d == c);
}