13 lines
230 B
Kotlin
Vendored
13 lines
230 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
fun foo(list: List<String>) {
|
|
var result: String? = null
|
|
<caret>for (s in list) {
|
|
if (s.length > 0) {
|
|
result = bar(s)
|
|
break
|
|
}
|
|
}
|
|
}
|
|
|
|
fun bar(s: String): String = s
|