leo/tests/pass/parse/statements/iteration_basic.leo

8 lines
115 B
Plaintext
Raw Normal View History

2021-03-03 20:59:24 +03:00
function main() {
let mut x = 4u32;
for i in 0..3 {
x -= 1;
}
console.assert(x == 1u32);
}