13 lines
287 B
Kotlin
Vendored
13 lines
287 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String>, o: Int?): Int? {
|
|
<caret>for (s in list) {
|
|
val length = s.length + o!!
|
|
if (length > 0) {
|
|
val x = length * o
|
|
return x
|
|
}
|
|
}
|
|
return null
|
|
} |