9a725b99b2
#KT-26650 Fixed
9 lines
220 B
Kotlin
Vendored
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 }
|
|
} |