Files
kotlin-fork/idea/testData/intentions/loopToCallChain/flatMap/wrongBreak.kt
T
2016-08-23 22:47:42 +03:00

15 lines
337 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
// IS_APPLICABLE_2: 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
}