leo/asg/tests/pass/function/iteration.leo

13 lines
162 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
function one() -> u32 {
return 1u32;
2021-01-25 18:17:42 +03:00
}
function main() {
let a = 0u32;
2021-01-25 18:17:42 +03:00
for i in 0..10 {
a += one();
}
console.assert(a == 10u32);
}