Files
kotlin-fork/idea/testData/intentions/loopToCallChain/forEach/KT14341.kt
T

9 lines
265 B
Kotlin
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filter{}.forEach{}'"
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
fun foo(list: List<Int>){
<caret>for (any in list) {
if (any > 0)
println("positive number")
}
}