mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 17:28:03 +00:00
Found error in testsuite fo continue
This commit is contained in:
parent
eac411972a
commit
fbe8280e30
@ -3,9 +3,11 @@ public class Continue {
|
|||||||
public void continueLoop(boolean shouldContinue) {
|
public void continueLoop(boolean shouldContinue) {
|
||||||
this.repetitions = 0;
|
this.repetitions = 0;
|
||||||
for (int i = 0; i < 5; i+=1) {
|
for (int i = 0; i < 5; i+=1) {
|
||||||
|
// the second condition has to be in brackets
|
||||||
if (shouldContinue && i == 3) {
|
if (shouldContinue && i == 3) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// repetition is a field variable, it should be retrieved with this
|
||||||
repetitions += 1;
|
repetitions += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user