14 lines
328 B
Kotlin
Vendored
14 lines
328 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String>, target: MutableList<String>) {
|
|
Loop@
|
|
<caret>for (s in list) {
|
|
for (i in s.indices) {
|
|
val v = bar(i) ?: continue@Loop
|
|
target.add(v.substring(1))
|
|
}
|
|
}
|
|
}
|
|
|
|
fun bar(p: Int): String? = null |