12 lines
283 B
Kotlin
Vendored
12 lines
283 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
// IS_APPLICABLE_2: false
|
|
fun Any.foo(list: List<String>): Int? {
|
|
<caret>for (s in list) {
|
|
if (s.length > 0 && this is String) {
|
|
val result = s.length + length
|
|
return result
|
|
}
|
|
}
|
|
return null
|
|
} |