1
0
forked from Mirror/wren
Files
wren/test/language/continue/in_while_loop.wren
Alan Stagner 55b926410d Add continue statement (#822)
Note that documentation is still required.
2020-12-03 08:30:36 -08:00

13 lines
158 B
Plaintext

var i = 0
while (true) {
i = i + 1
System.print(i)
if (i <= 2) continue
System.print(i)
break
}
// expect: 1
// expect: 2
// expect: 3
// expect: 3