This commit is contained in:
Dmitry Petrov
2016-08-24 17:11:01 +03:00
committed by Dmitry Petrov
parent 03a666690b
commit 4709aaafaa
12 changed files with 375 additions and 32 deletions
+33
View File
@@ -0,0 +1,33 @@
fun testForBreak1(ss: List<String>) {
for (s in ss) {
break
}
}
fun testForBreak2(ss: List<String>) {
OUTER@for (s1 in ss) {
INNER@for (s2 in ss) {
break@OUTER
break@INNER
break
}
break@OUTER
}
}
fun testForContinue1(ss: List<String>) {
for (s in ss) {
continue
}
}
fun testForContinue2(ss: List<String>) {
OUTER@for (s1 in ss) {
INNER@for (s2 in ss) {
continue@OUTER
continue@INNER
continue
}
continue@OUTER
}
}