leo/asg/tests/pass/function/iteration.leo
2021-01-25 07:19:38 -08:00

13 lines
165 B
Plaintext

function one() -> u32 {
return 1u32
}
function main() {
let mut a = 0u32;
for i in 0..10 {
a += one();
}
console.assert(a == 10u32);
}