mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 09:08:04 +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) {
|
||||
this.repetitions = 0;
|
||||
for (int i = 0; i < 5; i+=1) {
|
||||
// the second condition has to be in brackets
|
||||
if (shouldContinue && i == 3) {
|
||||
continue;
|
||||
}
|
||||
// repetition is a field variable, it should be retrieved with this
|
||||
repetitions += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user