leo/compiler/tests/function/iteration.leo
2020-06-22 18:28:30 -07:00

13 lines
139 B
Plaintext

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