Files
kotlin-fork/idea/testData/intentions/branched/ifWhen/ifToWhen/withInternalLoop.kt.after
T

13 lines
267 B
Plaintext
Vendored

// WITH_RUNTIME
fun testIf(xs: List<Any>) {
loop@ for (x in xs) {
when (x) {
is String -> for (c in x) {
continue // do not change
}
is Int -> break@loop
else -> println(x)
}
}
}