leo/compiler/tests/statements/conditional/nested.leo
2020-07-30 17:11:58 -07:00

12 lines
167 B
Plaintext

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