Do not override default AbstractList iterator() implementation for primitiveArray.asList wrappers.

#KT-9927 Fixed
This commit is contained in:
Ilya Gorbunov
2015-11-09 01:01:50 +03:00
parent 3651ec9294
commit f7135dfe50
3 changed files with 6 additions and 14 deletions
@@ -250,7 +250,6 @@ fun specialJVM(): List<GenericFunction> {
override val size: Int get() = this@asList.size()
override fun isEmpty(): Boolean = this@asList.isEmpty()
override fun contains(o: T): Boolean = this@asList.contains(o)
override fun iterator(): MutableIterator<T> = this@asList.iterator() as MutableIterator<T>
override fun get(index: Int): T = this@asList[index]
override fun indexOf(o: T): Int = this@asList.indexOf(o)
override fun lastIndexOf(o: T): Int = this@asList.lastIndexOf(o)