12 lines
268 B
Kotlin
Vendored
12 lines
268 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<Any>, target: MutableCollection<String>) {
|
|
<caret>for (o in list) {
|
|
if (bar(o as String)) {
|
|
target.add(o)
|
|
}
|
|
}
|
|
}
|
|
|
|
fun bar(s: String): Boolean = true |