leo/compiler/tests/statements/iteration_variable.leo

7 lines
98 B
Plaintext

function main() {
const x: u32 = 5;
for i in 0..x {
console.log("{}", i);
}
}