Removed toArray() from collections (few tests are still failing).

#KT-3352 in progress
This commit is contained in:
Evgeny Gerashchenko
2013-09-25 03:01:47 +04:00
parent 48625dd7b6
commit d56c59d9d7
162 changed files with 21 additions and 75 deletions
@@ -3,8 +3,6 @@ class MyList<T>: List<T> {
override fun isEmpty(): Boolean = true
override fun contains(o: Any?): Boolean = false
override fun iterator(): Iterator<T> = throw Error()
override fun toArray(): Array<Any?> = throw Error()
override fun <E> toArray(a: Array<out E>): Array<E> = throw Error()
override fun containsAll(c: Collection<Any?>): Boolean = false
override fun get(index: Int): T = throw IndexOutOfBoundsException()
override fun indexOf(o: Any?): Int = -1