Add tests for KT-40191
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
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() }
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
@kotlin.Metadata
|
||||
public final class EmptyList {
|
||||
// source: 'emptyList.kt'
|
||||
public final static @org.jetbrains.annotations.NotNull field INSTANCE: EmptyList
|
||||
static method <clinit>(): void
|
||||
private method <init>(): void
|
||||
public synthetic method add(p0: int, p1: java.lang.Object): void
|
||||
public method add(p0: int, p1: java.lang.Void): void
|
||||
public synthetic method add(p0: java.lang.Object): boolean
|
||||
public method add(p0: java.lang.Void): boolean
|
||||
public method addAll(p0: int, p1: java.util.Collection): boolean
|
||||
public method addAll(p0: java.util.Collection): boolean
|
||||
public method clear(): void
|
||||
public method contains(@org.jetbrains.annotations.NotNull p0: java.lang.Void): boolean
|
||||
public bridge final method contains(p0: java.lang.Object): boolean
|
||||
public method containsAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method equals(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean
|
||||
public synthetic bridge method get(p0: int): java.lang.Object
|
||||
public @org.jetbrains.annotations.NotNull method get(p0: int): java.lang.Void
|
||||
public method getSize(): int
|
||||
public method hashCode(): int
|
||||
public method indexOf(@org.jetbrains.annotations.NotNull p0: java.lang.Void): int
|
||||
public bridge final method indexOf(p0: java.lang.Object): int
|
||||
public method isEmpty(): boolean
|
||||
public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator
|
||||
public method lastIndexOf(@org.jetbrains.annotations.NotNull p0: java.lang.Void): int
|
||||
public bridge final method lastIndexOf(p0: java.lang.Object): int
|
||||
public @org.jetbrains.annotations.NotNull method listIterator(): java.util.ListIterator
|
||||
public @org.jetbrains.annotations.NotNull method listIterator(p0: int): java.util.ListIterator
|
||||
public synthetic method remove(p0: int): java.lang.Object
|
||||
public method remove(p0: int): java.lang.Void
|
||||
public method remove(p0: java.lang.Object): boolean
|
||||
public method removeAll(p0: java.util.Collection): boolean
|
||||
public method retainAll(p0: java.util.Collection): boolean
|
||||
public synthetic method set(p0: int, p1: java.lang.Object): java.lang.Object
|
||||
public method set(p0: int, p1: java.lang.Void): java.lang.Void
|
||||
public bridge final method size(): int
|
||||
public @org.jetbrains.annotations.NotNull method subList(p0: int, p1: int): java.util.List
|
||||
public method toArray(): java.lang.Object[]
|
||||
public method toArray(p0: java.lang.Object[]): java.lang.Object[]
|
||||
public @org.jetbrains.annotations.NotNull method toString(): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
@kotlin.Metadata
|
||||
public final class EmptyList {
|
||||
// source: 'emptyList.kt'
|
||||
public final static @org.jetbrains.annotations.NotNull field INSTANCE: EmptyList
|
||||
static method <clinit>(): void
|
||||
private method <init>(): void
|
||||
public synthetic bridge method add(p0: int, p1: java.lang.Object): void
|
||||
public method add(p0: int, p1: java.lang.Void): void
|
||||
public synthetic bridge method add(p0: java.lang.Object): boolean
|
||||
public method add(p0: java.lang.Void): boolean
|
||||
public method addAll(p0: int, p1: java.util.Collection): boolean
|
||||
public method addAll(p0: java.util.Collection): boolean
|
||||
public method clear(): void
|
||||
public method contains(@org.jetbrains.annotations.NotNull p0: java.lang.Void): boolean
|
||||
public bridge final method contains(p0: java.lang.Object): boolean
|
||||
public method containsAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method equals(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean
|
||||
public synthetic bridge method get(p0: int): java.lang.Object
|
||||
public @org.jetbrains.annotations.NotNull method get(p0: int): java.lang.Void
|
||||
public method getSize(): int
|
||||
public method hashCode(): int
|
||||
public method indexOf(@org.jetbrains.annotations.NotNull p0: java.lang.Void): int
|
||||
public bridge final method indexOf(p0: java.lang.Object): int
|
||||
public method isEmpty(): boolean
|
||||
public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator
|
||||
public method lastIndexOf(@org.jetbrains.annotations.NotNull p0: java.lang.Void): int
|
||||
public bridge final method lastIndexOf(p0: java.lang.Object): int
|
||||
public @org.jetbrains.annotations.NotNull method listIterator(): java.util.ListIterator
|
||||
public @org.jetbrains.annotations.NotNull method listIterator(p0: int): java.util.ListIterator
|
||||
public synthetic bridge method remove(p0: int): java.lang.Object
|
||||
public method remove(p0: int): java.lang.Void
|
||||
public method remove(p0: java.lang.Object): boolean
|
||||
public method removeAll(p0: java.util.Collection): boolean
|
||||
public method retainAll(p0: java.util.Collection): boolean
|
||||
public synthetic bridge method set(p0: int, p1: java.lang.Object): java.lang.Object
|
||||
public method set(p0: int, p1: java.lang.Void): java.lang.Void
|
||||
public bridge final method size(): int
|
||||
public @org.jetbrains.annotations.NotNull method subList(p0: int, p1: int): java.util.List
|
||||
public method toArray(): java.lang.Object[]
|
||||
public method toArray(p0: java.lang.Object[]): java.lang.Object[]
|
||||
public @org.jetbrains.annotations.NotNull method toString(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user