`continue` in `do-while` loops skips condition check
A continue
in a do-while
loops seems to jump to the next iteration and therefore skips the condition check. The following code infinitely prints "a"
, although the condition is false
:
mainAgent {
do {
println("a");
continue;
} while(false);
println("b");
}