c7435ba760
We are going to deprecate `WITH_RUNTIME` directive. The main reason behind this change is that `WITH_STDLIB` directive better describes its meaning, specifically it will add kotlin stdlib to test's classpath.
22 lines
883 B
Kotlin
Vendored
22 lines
883 B
Kotlin
Vendored
// WITH_STDLIB
|
|
|
|
internal object EmptyList : List<Nothing>, RandomAccess {
|
|
override fun equals(other: Any?): Boolean = TODO()
|
|
override fun hashCode(): Int = 1
|
|
override fun toString(): String = "[]"
|
|
|
|
override val size: Int get() = 0
|
|
override fun isEmpty(): Boolean = true
|
|
override fun contains(element: Nothing): Boolean = false
|
|
override fun containsAll(elements: Collection<Nothing>): Boolean = elements.isEmpty()
|
|
|
|
override fun get(index: Int): Nothing = TODO()
|
|
override fun indexOf(element: Nothing): Int = -1
|
|
override fun lastIndexOf(element: Nothing): Int = -1
|
|
|
|
override fun iterator(): Iterator<Nothing> = TODO()
|
|
override fun listIterator(): ListIterator<Nothing> = TODO()
|
|
override fun listIterator(index: Int): ListIterator<Nothing> { TODO() }
|
|
|
|
override fun subList(fromIndex: Int, toIndex: Int): List<Nothing> { TODO() }
|
|
} |