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

17 lines
286 B
Plaintext

for (i in 0..2) {
System.print("outer %(i)")
if (i == 1) continue
for (j in 0..2) {
if (j == 1) continue
System.print("inner %(j)")
}
}
// expect: outer 0
// expect: inner 0
// expect: inner 2
// expect: outer 1
// expect: outer 2
// expect: inner 0
// expect: inner 2