For loop not working #42
-
I'm having issues with for loops, I've the latest version of Aptos CLI, but for some reason this is not working. Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
gregnazario
Mar 8, 2024
Replies: 1 comment
-
Hey, this looks like a bug in the compiler, but there is a simple solution. Simply change this broken code here for(iter in 0..length) {
// ...
} And add a space between for (iter in 0..length) {
// ...
} There is a bug reported here aptos-labs/aptos-core#11921 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gregnazario
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, this looks like a bug in the compiler, but there is a simple solution.
Simply change this broken code here
for(iter in 0..length) { // ... }
And add a space between
for
and(
.for(
->for (
for (iter in 0..length) { // ... }
There is a bug reported here aptos-labs/aptos-core#11921