14 lines
295 B
Kotlin
Vendored
14 lines
295 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String?>) {
|
|
var result: String? = null
|
|
<caret>for (s in list) {
|
|
if (s != null && s.length > 0) {
|
|
result = bar(s)
|
|
break
|
|
}
|
|
}
|
|
}
|
|
|
|
fun bar(s: String?): String? = s |