Files
kotlin-fork/idea/testData/intentions/loopToCallChain/forEach.kt
T
Valentin Kipyatkov f28dca1fd5 Supported forEach
2016-08-16 17:38:12 +03:00

9 lines
200 B
Kotlin
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filter{}.forEach{}'"
fun foo(list: List<String>) {
<caret>for (s in list) {
if (s.isNotBlank()) {
println(s)
}
}
}