Files
kotlin-fork/idea/testData/intentions/loopToCallChain/flatMapWithWrongBreak.kt
T
2016-08-16 17:37:55 +03:00

14 lines
311 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
fun foo(list: List<String>): String? {
var result: String? = null
<caret>for (s in list) {
for (line in s.lines()) {
if (line.isNotBlank()) {
result = line
break
}
}
}
return result
}