leo/compiler/tests/function/iteration_repeated.leo
2021-04-14 15:27:57 -07:00

15 lines
208 B
Plaintext

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