leo/compiler/tests/function/repeated_iteration.leo
2020-07-17 12:59:18 -07:00

13 lines
176 B
Plaintext

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