9a725b99b2
#KT-26650 Fixed
9 lines
235 B
Plaintext
Vendored
9 lines
235 B
Plaintext
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.asSequence().filter { it > 1 }.map { it * 2 }.toList()
|
|
} |