[BLUEJ-938] for loops with counter on variable range are translated to for-each loops
The following for loop: {code:java} for each ( int j in 1 .. 10 ) {code} is translated (as expected) to: {code:java} for (int j = 1;j <= 10;j++) { {code} But this one: {code:java} for each ( int j in 1 .. i ) {code} doesn't give: {code:java} for (int j = 1;j <= i;j++) { {code} Instead, it is translated to this strange for-each loop: {code:java} for (final int j : lang.stride.Utility.makeRange(1, i)) { {code}
Issue metadata
- Issue type: Bug
- Priority: Medium