Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/simple4.kt
T
2018-08-08 10:29:10 +03:00

11 lines
203 B
Kotlin
Vendored

// WITH_RUNTIME
fun test(foo: Foo): List<Int> {
return foo.getList()
.<caret>filter { it > 1 }
.map { it * 2 }
}
class Foo {
fun getList(): List<Int> = listOf(1, 2, 3)
}