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

15 lines
282 B
Kotlin
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filter{}'"
// IS_APPLICABLE_2: false
import java.util.*
fun foo(): List<Int> {
val result = ArrayList<Int>()
<caret>for (i in 1..10) {
if (i % 3 == 0) {
result.add(i)
}
}
return result
}