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

13 lines
162 B
Plaintext

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