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

17 lines
304 B
Kotlin
Vendored

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