Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/iterable2.kt
T
2018-10-09 12:22:17 +03:00

9 lines
220 B
Kotlin
Vendored

// WITH_RUNTIME
class A<T>(private val list: List<T>) : Iterable<T> {
override fun iterator(): Iterator<T> = list.iterator()
}
fun test(i: A<Int>): List<Int> {
return i.<caret>filter { it > 1 }.map { it * 2 }
}