only allow loop flow control in loop

This commit is contained in:
dfsek
2020-12-31 02:49:48 -07:00
parent 0c3e3f2bc6
commit aa41cc4d3d
2 changed files with 22 additions and 17 deletions

View File

@@ -18,10 +18,13 @@ bool truetest = false;
num iterator = 0;
for(num i = 0; i < 5; i = i + 1) {
test("i = " + i, iterator);
if(i > 1 + 1) {
test("more than 2", iterator);
continue;
}
}