leo/tests/pass/parse/statements/chain.leo

13 lines
188 B
Plaintext
Raw Normal View History

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