Revert 'isEmpty' transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
17c906658d
commit
6322198a11
+8
-16
@@ -273,12 +273,11 @@ public interface Cloneable {
|
||||
}
|
||||
|
||||
public interface Collection</*0*/ out E> : kotlin.Iterable<E> {
|
||||
public abstract val isEmpty: kotlin.Boolean
|
||||
public abstract fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract val size: kotlin.Int
|
||||
public abstract fun <get-size>(): kotlin.Int
|
||||
public abstract operator fun contains(/*0*/ o: @kotlin.UnsafeVariance() E): kotlin.Boolean
|
||||
public abstract fun containsAll(/*0*/ c: kotlin.Collection<@kotlin.UnsafeVariance() E>): kotlin.Boolean
|
||||
public abstract fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ fun iterator(): kotlin.Iterator<E>
|
||||
}
|
||||
|
||||
@@ -767,14 +766,13 @@ public interface Iterator</*0*/ out T> {
|
||||
}
|
||||
|
||||
public interface List</*0*/ out E> : kotlin.Collection<E> {
|
||||
public abstract override /*1*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*1*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ fun <get-size>(): kotlin.Int
|
||||
public abstract override /*1*/ fun contains(/*0*/ o: @kotlin.UnsafeVariance() E): kotlin.Boolean
|
||||
public abstract override /*1*/ fun containsAll(/*0*/ c: kotlin.Collection<@kotlin.UnsafeVariance() E>): kotlin.Boolean
|
||||
public abstract operator fun get(/*0*/ index: kotlin.Int): E
|
||||
public abstract fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ fun iterator(): kotlin.Iterator<E>
|
||||
public abstract fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract fun listIterator(): kotlin.ListIterator<E>
|
||||
@@ -930,8 +928,6 @@ public final class LongRange : kotlin.Range<kotlin.Long>, kotlin.Progression<kot
|
||||
public interface Map</*0*/ K, /*1*/ out V> {
|
||||
public abstract val entries: kotlin.Set<kotlin.Map.Entry<K, V>>
|
||||
public abstract fun <get-entries>(): kotlin.Set<kotlin.Map.Entry<K, V>>
|
||||
public abstract val isEmpty: kotlin.Boolean
|
||||
public abstract fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract val keys: kotlin.Set<K>
|
||||
public abstract fun <get-keys>(): kotlin.Set<K>
|
||||
public abstract val size: kotlin.Int
|
||||
@@ -941,6 +937,7 @@ public interface Map</*0*/ K, /*1*/ out V> {
|
||||
public abstract fun containsKey(/*0*/ key: K): kotlin.Boolean
|
||||
public abstract fun containsValue(/*0*/ value: @kotlin.UnsafeVariance() V): kotlin.Boolean
|
||||
public abstract operator fun get(/*0*/ key: K): V?
|
||||
public abstract fun isEmpty(): kotlin.Boolean
|
||||
|
||||
public interface Entry</*0*/ out K, /*1*/ out V> {
|
||||
public abstract val key: K
|
||||
@@ -951,8 +948,6 @@ public interface Map</*0*/ K, /*1*/ out V> {
|
||||
}
|
||||
|
||||
public interface MutableCollection</*0*/ E> : kotlin.Collection<E>, kotlin.MutableIterable<E> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun <get-size>(): kotlin.Int
|
||||
public abstract fun add(/*0*/ e: E): kotlin.Boolean
|
||||
@@ -960,6 +955,7 @@ public interface MutableCollection</*0*/ E> : kotlin.Collection<E>, kotlin.Mutab
|
||||
public abstract fun clear(): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun contains(/*0*/ o: E): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<E>): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*2*/ fun iterator(): kotlin.MutableIterator<E>
|
||||
public abstract fun remove(/*0*/ o: E): kotlin.Boolean
|
||||
public abstract fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -977,8 +973,6 @@ public interface MutableIterator</*0*/ out T> : kotlin.Iterator<T> {
|
||||
}
|
||||
|
||||
public interface MutableList</*0*/ E> : kotlin.List<E>, kotlin.MutableCollection<E> {
|
||||
public abstract override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*2*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*2*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*2*/ /*fake_override*/ fun <get-size>(): kotlin.Int
|
||||
public abstract override /*1*/ fun add(/*0*/ e: E): kotlin.Boolean
|
||||
@@ -990,6 +984,7 @@ public interface MutableList</*0*/ E> : kotlin.List<E>, kotlin.MutableCollection
|
||||
public abstract override /*2*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<E>): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): E
|
||||
public abstract override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*2*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<E>
|
||||
public abstract override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ fun listIterator(): kotlin.MutableListIterator<E>
|
||||
@@ -1017,8 +1012,6 @@ public interface MutableListIterator</*0*/ T> : kotlin.ListIterator<T>, kotlin.M
|
||||
public interface MutableMap</*0*/ K, /*1*/ V> : kotlin.Map<K, V> {
|
||||
public abstract override /*1*/ val entries: kotlin.MutableSet<kotlin.MutableMap.MutableEntry<K, V>>
|
||||
public abstract override /*1*/ fun <get-entries>(): kotlin.MutableSet<kotlin.MutableMap.MutableEntry<K, V>>
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*1*/ val keys: kotlin.MutableSet<K>
|
||||
public abstract override /*1*/ fun <get-keys>(): kotlin.MutableSet<K>
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -1029,6 +1022,7 @@ public interface MutableMap</*0*/ K, /*1*/ V> : kotlin.Map<K, V> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsKey(/*0*/ key: K): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsValue(/*0*/ value: V): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ key: K): V?
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract fun put(/*0*/ key: K, /*1*/ value: V): V?
|
||||
public abstract fun putAll(/*0*/ m: kotlin.Map<out K, V>): kotlin.Unit
|
||||
public abstract fun remove(/*0*/ key: K): V?
|
||||
@@ -1043,8 +1037,6 @@ public interface MutableMap</*0*/ K, /*1*/ V> : kotlin.Map<K, V> {
|
||||
}
|
||||
|
||||
public interface MutableSet</*0*/ E> : kotlin.Set<E>, kotlin.MutableCollection<E> {
|
||||
public abstract override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*2*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*2*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*2*/ /*fake_override*/ fun <get-size>(): kotlin.Int
|
||||
public abstract override /*1*/ fun add(/*0*/ e: E): kotlin.Boolean
|
||||
@@ -1052,6 +1044,7 @@ public interface MutableSet</*0*/ E> : kotlin.Set<E>, kotlin.MutableCollection<E
|
||||
public abstract override /*1*/ fun clear(): kotlin.Unit
|
||||
public abstract override /*2*/ /*fake_override*/ fun contains(/*0*/ o: E): kotlin.Boolean
|
||||
public abstract override /*2*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<E>): kotlin.Boolean
|
||||
public abstract override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*2*/ fun iterator(): kotlin.MutableIterator<E>
|
||||
public abstract override /*1*/ fun remove(/*0*/ o: E): kotlin.Boolean
|
||||
public abstract override /*1*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -1114,12 +1107,11 @@ public interface Range</*0*/ T : kotlin.Comparable<T>> {
|
||||
}
|
||||
|
||||
public interface Set</*0*/ out E> : kotlin.Collection<E> {
|
||||
public abstract override /*1*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*1*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ fun <get-size>(): kotlin.Int
|
||||
public abstract override /*1*/ fun contains(/*0*/ o: @kotlin.UnsafeVariance() E): kotlin.Boolean
|
||||
public abstract override /*1*/ fun containsAll(/*0*/ c: kotlin.Collection<@kotlin.UnsafeVariance() E>): kotlin.Boolean
|
||||
public abstract override /*1*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ fun iterator(): kotlin.Iterator<E>
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ class StrList : List<String?> {
|
||||
override val size: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
|
||||
override val isEmpty: Boolean get() {
|
||||
override fun isEmpty(): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyCollection<T>: Collection<T> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: T): Boolean = false
|
||||
override fun iterator(): Iterator<T> = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<T>): Boolean = false
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyList<T>: List<T> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: T): Boolean = false
|
||||
override fun iterator(): Iterator<T> = throw Error()
|
||||
override fun containsAll(c: Collection<T>): Boolean = false
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
class MyList<T>(val v: T): List<T> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: T): Boolean = false
|
||||
override fun iterator(): Iterator<T> = throw Error()
|
||||
override fun containsAll(c: Collection<T>): Boolean = false
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ open class Super<T>(val v: T) {
|
||||
|
||||
class MyList<T>(v: T): Super<T>(v), List<T> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: T): Boolean = false
|
||||
override fun iterator(): Iterator<T> = throw Error()
|
||||
override fun containsAll(c: Collection<T>): Boolean = false
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
class MyMap<K, V>: Map<K, V> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun containsKey(key: K): Boolean = false
|
||||
override fun containsValue(value: V): Boolean = false
|
||||
override fun get(key: K): V? = null
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
class MyMap<K, V>: Map<K, V> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun containsKey(key: K): Boolean = false
|
||||
override fun containsValue(value: V): Boolean = false
|
||||
override fun get(key: K): V? = null
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyList: List<String> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: String): Boolean = false
|
||||
override fun iterator(): Iterator<String> = throw Error()
|
||||
override fun containsAll(c: Collection<String>): Boolean = false
|
||||
|
||||
@@ -4,7 +4,7 @@ interface Addable {
|
||||
|
||||
class C : Addable, List<String> {
|
||||
override val size: Int get() = null!!
|
||||
override val isEmpty: Boolean get() = null!!
|
||||
override fun isEmpty(): Boolean = null!!
|
||||
override fun contains(o: String): Boolean = null!!
|
||||
override fun iterator(): Iterator<String> = null!!
|
||||
override fun containsAll(c: Collection<String>): Boolean = null!!
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ open class SetStringImpl {
|
||||
|
||||
class S : Set<String>, SetStringImpl() {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: String): Boolean = false
|
||||
override fun iterator(): Iterator<String> = null!!
|
||||
override fun containsAll(c: Collection<String>) = false
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@ import java.util.Collections
|
||||
|
||||
class A<U : Number, V : U, W : V> : Set<W> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: W): Boolean = false
|
||||
override fun iterator(): Iterator<W> = Collections.emptySet<W>().iterator()
|
||||
override fun containsAll(c: Collection<W>): Boolean = c.isEmpty
|
||||
override fun containsAll(c: Collection<W>): Boolean = c.isEmpty()
|
||||
}
|
||||
|
||||
fun expectUoe(block: () -> Any) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import java.util.ArrayList
|
||||
class MyCollection<T> : Collection<List<Iterator<T>>> {
|
||||
override fun iterator() = null!!
|
||||
override val size: Int get() = null!!
|
||||
override val isEmpty: Boolean get() = null!!
|
||||
override fun isEmpty(): Boolean = null!!
|
||||
override fun contains(o: List<Iterator<T>>): Boolean = null!!
|
||||
override fun containsAll(c: Collection<List<Iterator<T>>>): Boolean = null!!
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ interface A0 {
|
||||
}
|
||||
|
||||
class B0 : Collection<String>, A0 {
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
@@ -18,7 +18,7 @@ open class A1 {
|
||||
}
|
||||
|
||||
class B1 : Collection<String>, A1() {
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
@@ -43,7 +43,7 @@ interface I4<T> {
|
||||
}
|
||||
|
||||
class B4 : Collection<String>, I4<Int> {
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
@@ -56,7 +56,7 @@ interface I5 : Collection<String> {
|
||||
}
|
||||
|
||||
class B5 : I5 {
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
|
||||
@@ -2,7 +2,7 @@ class A1 : MutableCollection<String> {
|
||||
override val size: Int
|
||||
get() = 56
|
||||
|
||||
override val isEmpty: Boolean get() {
|
||||
override fun isEmpty(): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class A : Map<String, String> {
|
||||
override val size: Int get() = 56
|
||||
|
||||
override val isEmpty: Boolean get() {
|
||||
override fun isEmpty(): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
abstract class C : Test.A, List<String> {
|
||||
override val size: Int get() = null!!
|
||||
override val isEmpty: Boolean get() = null!!
|
||||
override fun isEmpty(): Boolean = null!!
|
||||
override fun contains(o: String): Boolean = null!!
|
||||
override fun iterator(): Iterator<String> = null!!
|
||||
override fun containsAll(c: Collection<String>): Boolean = null!!
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ open class KList<E> : MutableList<E> {
|
||||
override val size: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
|
||||
override val isEmpty: Boolean get() {
|
||||
override fun isEmpty(): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
open class A : MutableList<Int> {
|
||||
override val size: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
override val isEmpty: Boolean
|
||||
get() = throw UnsupportedOperationException()
|
||||
override fun isEmpty(): Boolean = throw UnsupportedOperationException()
|
||||
|
||||
override fun contains(o: Int): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
|
||||
@@ -2,7 +2,7 @@ open class KList : MutableList<String> {
|
||||
override val size: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
|
||||
override val isEmpty: Boolean get() {
|
||||
override fun isEmpty(): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ public/*package*/ open class ExtendsAbstractListT {
|
||||
|
||||
public abstract class Mine</*0*/ T> : java.util.AbstractList<T> {
|
||||
public constructor Mine</*0*/ T>()
|
||||
public open /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract /*fake_override*/ val size: kotlin.Int
|
||||
public open /*fake_override*/ fun add(/*0*/ T!): kotlin.Boolean
|
||||
@@ -18,6 +17,7 @@ public abstract class Mine</*0*/ T> : java.util.AbstractList<T> {
|
||||
public open /*fake_override*/ fun containsAll(/*0*/ kotlin.Collection<T!>): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun get(/*0*/ kotlin.Int): T!
|
||||
public open /*fake_override*/ fun indexOf(/*0*/ kotlin.Any?): kotlin.Int
|
||||
public open /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public open /*fake_override*/ fun lastIndexOf(/*0*/ kotlin.Any?): kotlin.Int
|
||||
public open /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T!>
|
||||
|
||||
@@ -2,7 +2,6 @@ package test
|
||||
|
||||
public abstract class Mine : java.util.List<kotlin.String> {
|
||||
public constructor Mine()
|
||||
public abstract /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract /*fake_override*/ val size: kotlin.Int
|
||||
public abstract /*fake_override*/ fun add(/*0*/ kotlin.Int, /*1*/ kotlin.String!): kotlin.Unit
|
||||
public abstract /*fake_override*/ fun add(/*0*/ kotlin.String!): kotlin.Boolean
|
||||
@@ -13,6 +12,7 @@ public abstract class Mine : java.util.List<kotlin.String> {
|
||||
public abstract /*fake_override*/ fun containsAll(/*0*/ kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun get(/*0*/ kotlin.Int): kotlin.String!
|
||||
public abstract /*fake_override*/ fun indexOf(/*0*/ kotlin.Any!): kotlin.Int
|
||||
public abstract /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public abstract /*fake_override*/ fun lastIndexOf(/*0*/ kotlin.Any!): kotlin.Int
|
||||
public abstract /*fake_override*/ fun listIterator(): kotlin.(Mutable)ListIterator<kotlin.String!>!
|
||||
|
||||
+1
-1
@@ -21,7 +21,6 @@ public final class Barr : Bar {
|
||||
public final class Foo1 : java.util.ArrayList<kotlin.Int> {
|
||||
public constructor Foo1()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -43,6 +42,7 @@ public final class Foo1 : java.util.ArrayList<kotlin.Int> {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.Int>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.Int>
|
||||
|
||||
@@ -7,7 +7,6 @@ public interface Generic</*0*/ E : My> {
|
||||
}
|
||||
|
||||
public interface His : kotlin.List<My> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun contains(/*0*/ o: My): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<My>): kotlin.Boolean
|
||||
@@ -15,6 +14,7 @@ public interface His : kotlin.List<My> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): My
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.Iterator<My>
|
||||
public abstract override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun listIterator(): kotlin.ListIterator<My>
|
||||
|
||||
@@ -3,7 +3,6 @@ package
|
||||
public abstract class AL : java.util.ArrayList<p.P> {
|
||||
public constructor AL()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -25,6 +24,7 @@ public abstract class AL : java.util.ArrayList<p.P> {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<p.P>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<p.P>
|
||||
|
||||
@@ -4,7 +4,6 @@ public fun foo(/*0*/ a: A<kotlin.String>, /*1*/ b: B, /*2*/ ic: IC, /*3*/ ka: KA
|
||||
|
||||
public abstract class A</*0*/ T : kotlin.Any!> : kotlin.MutableCollection<T!> {
|
||||
public constructor A</*0*/ T : kotlin.Any!>()
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<T!>): kotlin.Boolean
|
||||
@@ -13,6 +12,7 @@ public abstract class A</*0*/ T : kotlin.Any!> : kotlin.MutableCollection<T!> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<T!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: T!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -22,7 +22,6 @@ public abstract class A</*0*/ T : kotlin.Any!> : kotlin.MutableCollection<T!> {
|
||||
|
||||
public abstract class B : kotlin.MutableCollection<kotlin.String!> {
|
||||
public constructor B()
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
@@ -31,6 +30,7 @@ public abstract class B : kotlin.MutableCollection<kotlin.String!> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -39,7 +39,6 @@ public abstract class B : kotlin.MutableCollection<kotlin.String!> {
|
||||
}
|
||||
|
||||
public interface IC : kotlin.MutableCollection<kotlin.String!> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
@@ -48,6 +47,7 @@ public interface IC : kotlin.MutableCollection<kotlin.String!> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -57,7 +57,6 @@ public interface IC : kotlin.MutableCollection<kotlin.String!> {
|
||||
|
||||
public abstract class KA</*0*/ T> : java.util.AbstractList<T> {
|
||||
public constructor KA</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
@@ -71,6 +70,7 @@ public abstract class KA</*0*/ T> : java.util.AbstractList<T> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): T!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T!>
|
||||
@@ -91,7 +91,6 @@ public abstract class KA</*0*/ T> : java.util.AbstractList<T> {
|
||||
|
||||
public abstract class KB : java.util.AbstractList<kotlin.String>, IC {
|
||||
public constructor KB()
|
||||
public open override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*2*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.String!): kotlin.Unit
|
||||
@@ -105,6 +104,7 @@ public abstract class KB : java.util.AbstractList<kotlin.String>, IC {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.String!
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
|
||||
+5
-5
@@ -4,7 +4,6 @@ public fun foo(/*0*/ a: A<kotlin.String>, /*1*/ b: B, /*2*/ ic: IC, /*3*/ ka: KA
|
||||
|
||||
public abstract class A</*0*/ T : kotlin.Any!> : kotlin.MutableCollection<T!> {
|
||||
public constructor A</*0*/ T : kotlin.Any!>()
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<T!>): kotlin.Boolean
|
||||
@@ -13,6 +12,7 @@ public abstract class A</*0*/ T : kotlin.Any!> : kotlin.MutableCollection<T!> {
|
||||
public open override /*1*/ fun containsAll(/*0*/ c: kotlin.Collection<T!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: T!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -22,7 +22,6 @@ public abstract class A</*0*/ T : kotlin.Any!> : kotlin.MutableCollection<T!> {
|
||||
|
||||
public abstract class B : kotlin.MutableCollection<kotlin.String!> {
|
||||
public constructor B()
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
@@ -31,6 +30,7 @@ public abstract class B : kotlin.MutableCollection<kotlin.String!> {
|
||||
public open override /*1*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -39,7 +39,6 @@ public abstract class B : kotlin.MutableCollection<kotlin.String!> {
|
||||
}
|
||||
|
||||
public interface IC : kotlin.MutableCollection<kotlin.String!> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
@@ -48,6 +47,7 @@ public interface IC : kotlin.MutableCollection<kotlin.String!> {
|
||||
public abstract override /*1*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -57,7 +57,6 @@ public interface IC : kotlin.MutableCollection<kotlin.String!> {
|
||||
|
||||
public abstract class KA</*0*/ T> : java.util.AbstractList<T> {
|
||||
public constructor KA</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
@@ -71,6 +70,7 @@ public abstract class KA</*0*/ T> : java.util.AbstractList<T> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): T!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T!>
|
||||
@@ -91,7 +91,6 @@ public abstract class KA</*0*/ T> : java.util.AbstractList<T> {
|
||||
|
||||
public abstract class KB : java.util.AbstractList<kotlin.String>, IC {
|
||||
public constructor KB()
|
||||
public open override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*2*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.String!): kotlin.Unit
|
||||
@@ -105,6 +104,7 @@ public abstract class KB : java.util.AbstractList<kotlin.String>, IC {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.String!
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
|
||||
+2
-2
@@ -4,7 +4,6 @@ public fun foo(/*0*/ a: A, /*1*/ ka: KA): kotlin.Unit
|
||||
|
||||
public abstract class A : kotlin.MutableCollection<kotlin.String!> {
|
||||
public constructor A()
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
@@ -13,6 +12,7 @@ public abstract class A : kotlin.MutableCollection<kotlin.String!> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -22,7 +22,6 @@ public abstract class A : kotlin.MutableCollection<kotlin.String!> {
|
||||
|
||||
public abstract class KA : A {
|
||||
public constructor KA()
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
@@ -31,6 +30,7 @@ public abstract class KA : A {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: kotlin.String!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
|
||||
+1
-1
@@ -5,7 +5,6 @@ public fun foo(/*0*/ m: MyMap): kotlin.Unit
|
||||
public abstract class MyMap : java.util.AbstractMap<kotlin.Double!, kotlin.CharSequence!> {
|
||||
public constructor MyMap()
|
||||
public abstract override /*1*/ /*fake_override*/ val entries: kotlin.MutableSet<kotlin.MutableMap.MutableEntry<kotlin.Double!, kotlin.CharSequence!>>
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var keySet: kotlin.(Mutable)Set<kotlin.Double!>!
|
||||
public open override /*1*/ /*fake_override*/ val keys: kotlin.MutableSet<kotlin.Double!>
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -18,6 +17,7 @@ public abstract class MyMap : java.util.AbstractMap<kotlin.Double!, kotlin.CharS
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public/*package*/ open override /*1*/ fun get(/*0*/ q: kotlin.Double!): kotlin.String?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun put(/*0*/ key: kotlin.Double!, /*1*/ value: kotlin.CharSequence!): kotlin.CharSequence?
|
||||
public open override /*1*/ /*fake_override*/ fun putAll(/*0*/ m: kotlin.Map<out kotlin.Double!, kotlin.CharSequence!>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun remove(/*0*/ key: kotlin.Double!): kotlin.CharSequence?
|
||||
|
||||
+2
-2
@@ -4,7 +4,6 @@ public fun main(): kotlin.Unit
|
||||
|
||||
public open class X : kotlin.MutableList<kotlin.String!> {
|
||||
public constructor X()
|
||||
public open override /*1*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ val size: kotlin.Int
|
||||
@java.lang.Override() public open override /*1*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.String!): kotlin.Unit
|
||||
@java.lang.Override() public open override /*1*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
@@ -17,6 +16,7 @@ public open class X : kotlin.MutableList<kotlin.String!> {
|
||||
@java.lang.Override() public open override /*1*/ fun get(/*0*/ index: kotlin.Int): kotlin.String!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@java.lang.Override() public open override /*1*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
@java.lang.Override() public open override /*1*/ fun isEmpty(): kotlin.Boolean
|
||||
@org.jetbrains.annotations.NotNull() @java.lang.Override() public open override /*1*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
@java.lang.Override() public open override /*1*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
@org.jetbrains.annotations.NotNull() @java.lang.Override() public open override /*1*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
@@ -34,7 +34,6 @@ public open class X : kotlin.MutableList<kotlin.String!> {
|
||||
|
||||
public final class Y : X {
|
||||
public constructor Y()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@java.lang.Override() public open override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.String!): kotlin.Unit
|
||||
@java.lang.Override() public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String!): kotlin.Boolean
|
||||
@@ -47,6 +46,7 @@ public final class Y : X {
|
||||
@java.lang.Override() public open override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.String!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@java.lang.Override() public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
@java.lang.Override() public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
@org.jetbrains.annotations.NotNull() @java.lang.Override() public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
@java.lang.Override() public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
@org.jetbrains.annotations.NotNull() @java.lang.Override() public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
|
||||
@@ -4,7 +4,6 @@ public fun main(/*0*/ a: A<kotlin.String>, /*1*/ b: B<kotlin.String>, /*2*/ c: j
|
||||
|
||||
public abstract class A</*0*/ F : kotlin.Any!> : B<F!> {
|
||||
public constructor A</*0*/ F : kotlin.Any!>()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: F!): kotlin.Boolean
|
||||
@@ -18,6 +17,7 @@ public abstract class A</*0*/ F : kotlin.Any!> : B<F!> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): F!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<F!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<F!>
|
||||
@@ -43,7 +43,6 @@ public abstract class A</*0*/ F : kotlin.Any!> : B<F!> {
|
||||
|
||||
public abstract class B</*0*/ T> : kotlin.MutableList<T>, java.util.AbstractList<T> {
|
||||
public constructor B</*0*/ T>()
|
||||
public open override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*2*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
@@ -57,6 +56,7 @@ public abstract class B</*0*/ T> : kotlin.MutableList<T>, java.util.AbstractList
|
||||
public abstract override /*2*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): T!
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public open override /*2*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T!>
|
||||
|
||||
+2
-2
@@ -4,7 +4,6 @@ public fun main(/*0*/ a: A, /*1*/ b: B, /*2*/ c: java.util.ArrayList<kotlin.Int>
|
||||
|
||||
public abstract class A : B {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.Int!): kotlin.Unit
|
||||
@@ -18,6 +17,7 @@ public abstract class A : B {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.Int!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.Int!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.Int!>
|
||||
@@ -43,7 +43,6 @@ public abstract class A : B {
|
||||
|
||||
public abstract class B : kotlin.MutableList<kotlin.Int>, java.util.AbstractList<kotlin.Int> {
|
||||
public constructor B()
|
||||
public open override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*2*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.Int!): kotlin.Unit
|
||||
@@ -57,6 +56,7 @@ public abstract class B : kotlin.MutableList<kotlin.Int>, java.util.AbstractList
|
||||
public abstract override /*2*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.Int!
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.Int!>
|
||||
public open override /*2*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.Int!>
|
||||
|
||||
@@ -3,7 +3,6 @@ package
|
||||
public abstract class A : java.util.ArrayList<kotlin.String!> {
|
||||
public constructor A()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public final override /*1*/ val size: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
@@ -25,6 +24,7 @@ public abstract class A : java.util.ArrayList<kotlin.String!> {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
@@ -57,7 +57,6 @@ public abstract class A : java.util.ArrayList<kotlin.String!> {
|
||||
public final class B : A {
|
||||
public constructor B()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public open override /*1*/ val size: kotlin.Int = 1
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
@@ -79,6 +78,7 @@ public final class B : A {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
|
||||
@@ -3,7 +3,6 @@ package
|
||||
public final class B2 : java.util.ArrayList<kotlin.String>, I2 {
|
||||
public constructor B2()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -25,6 +24,7 @@ public final class B2 : java.util.ArrayList<kotlin.String>, I2 {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String>
|
||||
|
||||
@@ -2,7 +2,7 @@ package collections
|
||||
|
||||
fun <T> testCollection(c: Collection<T>, t: T) {
|
||||
c.size
|
||||
c.isEmpty
|
||||
c.isEmpty()
|
||||
c.contains(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
||||
val <!UNUSED_VARIABLE!>iterator<!>: Iterator<T> = c.iterator()
|
||||
c.containsAll(c)
|
||||
@@ -18,7 +18,7 @@ fun <T> testCollection(c: Collection<T>, t: T) {
|
||||
}
|
||||
fun <T> testMutableCollection(c: MutableCollection<T>, t: T) {
|
||||
c.size
|
||||
c.isEmpty
|
||||
c.isEmpty()
|
||||
c.contains(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
||||
val <!UNUSED_VARIABLE!>iterator<!>: Iterator<T> = c.iterator()
|
||||
c.containsAll(c)
|
||||
@@ -60,7 +60,7 @@ fun <T> testMutableList(l: MutableList<T>, t: T) {
|
||||
|
||||
fun <T> testSet(s: Set<T>, t: T) {
|
||||
s.size
|
||||
s.isEmpty
|
||||
s.isEmpty()
|
||||
s.contains(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
||||
val <!UNUSED_VARIABLE!>iterator<!>: Iterator<T> = s.iterator()
|
||||
s.containsAll(s)
|
||||
@@ -76,7 +76,7 @@ fun <T> testSet(s: Set<T>, t: T) {
|
||||
}
|
||||
fun <T> testMutableSet(s: MutableSet<T>, t: T) {
|
||||
s.size
|
||||
s.isEmpty
|
||||
s.isEmpty()
|
||||
s.contains(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
||||
val <!UNUSED_VARIABLE!>iterator<!>: Iterator<T> = s.iterator()
|
||||
s.containsAll(s)
|
||||
|
||||
Vendored
+1
-1
@@ -12,7 +12,6 @@ public open class A {
|
||||
|
||||
public abstract class B : kotlin.MutableList<kotlin.String> {
|
||||
public constructor B()
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.String): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: kotlin.String): kotlin.Boolean
|
||||
@@ -25,6 +24,7 @@ public abstract class B : kotlin.MutableList<kotlin.String> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String>
|
||||
public abstract override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String>
|
||||
|
||||
Vendored
+1
-1
@@ -5,7 +5,6 @@ public fun </*0*/ M2 : WithFoo> foo(/*0*/ delegateResolver: ResolverForProject<M
|
||||
public/*package*/ open class MyMap</*0*/ K : kotlin.Any!, /*1*/ V : kotlin.Any!> : java.util.AbstractMap<K!, V!> {
|
||||
public/*package*/ constructor MyMap</*0*/ K : kotlin.Any!, /*1*/ V : kotlin.Any!>()
|
||||
public open override /*1*/ val entries: kotlin.MutableSet<kotlin.MutableMap.MutableEntry<K!, V!>>
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var keySet: kotlin.(Mutable)Set<K!>!
|
||||
public open override /*1*/ /*fake_override*/ val keys: kotlin.MutableSet<K!>
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -18,6 +17,7 @@ public/*package*/ open class MyMap</*0*/ K : kotlin.Any!, /*1*/ V : kotlin.Any!>
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun get(/*0*/ key: K!): V?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun put(/*0*/ key: K!, /*1*/ value: V!): V?
|
||||
public open override /*1*/ /*fake_override*/ fun putAll(/*0*/ m: kotlin.Map<out K!, V!>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun remove(/*0*/ key: K!): V?
|
||||
|
||||
+3
-3
@@ -2,7 +2,6 @@ package
|
||||
|
||||
public final class A : kotlin.List<kotlin.String> {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*delegation*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun contains(/*0*/ o: kotlin.String): kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String>): kotlin.Boolean
|
||||
@@ -10,6 +9,7 @@ public final class A : kotlin.List<kotlin.String> {
|
||||
public open override /*1*/ /*delegation*/ fun get(/*0*/ index: kotlin.Int): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ fun iterator(): kotlin.Iterator<kotlin.String>
|
||||
public open override /*1*/ /*delegation*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun listIterator(): kotlin.ListIterator<kotlin.String>
|
||||
@@ -20,7 +20,6 @@ public final class A : kotlin.List<kotlin.String> {
|
||||
|
||||
public final class B : kotlin.List<kotlin.String> {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*delegation*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun contains(/*0*/ o: kotlin.String): kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String>): kotlin.Boolean
|
||||
@@ -28,6 +27,7 @@ public final class B : kotlin.List<kotlin.String> {
|
||||
public open override /*1*/ /*delegation*/ fun get(/*0*/ index: kotlin.Int): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ fun iterator(): kotlin.Iterator<kotlin.String>
|
||||
public open override /*1*/ /*delegation*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun listIterator(): kotlin.ListIterator<kotlin.String>
|
||||
@@ -38,7 +38,6 @@ public final class B : kotlin.List<kotlin.String> {
|
||||
|
||||
public final class C : kotlin.List<kotlin.String> {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*delegation*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun contains(/*0*/ o: kotlin.String): kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String>): kotlin.Boolean
|
||||
@@ -46,6 +45,7 @@ public final class C : kotlin.List<kotlin.String> {
|
||||
public open override /*1*/ /*delegation*/ fun get(/*0*/ index: kotlin.Int): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ fun iterator(): kotlin.Iterator<kotlin.String>
|
||||
public open override /*1*/ /*delegation*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*delegation*/ fun listIterator(): kotlin.ListIterator<kotlin.String>
|
||||
|
||||
+2
-2
@@ -2,7 +2,6 @@ package
|
||||
|
||||
public interface ExtMap</*0*/ K, /*1*/ V> : kotlin.Map<K, V> {
|
||||
public abstract override /*1*/ /*fake_override*/ val entries: kotlin.Set<kotlin.Map.Entry<K, V>>
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val keys: kotlin.Set<K>
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ val values: kotlin.Collection<V>
|
||||
@@ -11,6 +10,7 @@ public interface ExtMap</*0*/ K, /*1*/ V> : kotlin.Map<K, V> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ key: K): V?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ public final class HashMapEx</*0*/ K, /*1*/ V> : java.util.HashMap<K, V>, ExtMap
|
||||
public open override /*2*/ /*fake_override*/ val entries: kotlin.MutableSet<kotlin.MutableMap.MutableEntry<K, V>>
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var entrySet: kotlin.(Mutable)Set<kotlin.(Mutable)Map.(Mutable)Entry<K!, V!>!>!
|
||||
invisible_fake final override /*1*/ /*fake_override*/ val hashSeed: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var keySet: kotlin.(Mutable)Set<K!>!
|
||||
public open override /*2*/ /*fake_override*/ val keys: kotlin.MutableSet<K>
|
||||
invisible_fake final override /*1*/ /*fake_override*/ val loadFactor: kotlin.Float
|
||||
@@ -47,6 +46,7 @@ public final class HashMapEx</*0*/ K, /*1*/ V> : java.util.HashMap<K, V>, ExtMap
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun hash(/*0*/ p0: kotlin.Any!): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun init(): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun loadFactor(): kotlin.Float
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun newEntryIterator(): kotlin.(Mutable)Iterator<kotlin.(Mutable)Map.(Mutable)Entry<K!, V!>!>!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun newKeyIterator(): kotlin.(Mutable)Iterator<K!>!
|
||||
|
||||
@@ -34,7 +34,6 @@ package b {
|
||||
public final class NewClass : java.util.ArrayList<java.lang.Integer> {
|
||||
public constructor NewClass()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -56,6 +55,7 @@ package b {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<java.lang.Integer>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<java.lang.Integer>
|
||||
|
||||
@@ -5,7 +5,6 @@ public fun test(): kotlin.Unit
|
||||
public final class MyListOfPairs</*0*/ T> : java.util.ArrayList<Pair<T, T>> {
|
||||
public constructor MyListOfPairs</*0*/ T>()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -27,6 +26,7 @@ public final class MyListOfPairs</*0*/ T> : java.util.ArrayList<Pair<T, T>> {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<Pair<T, T>>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<Pair<T, T>>
|
||||
|
||||
+1
-1
@@ -5,7 +5,6 @@ public fun foo(): kotlin.Unit
|
||||
|
||||
@kotlin.jvm.PurelyImplements(value = "kotlin.MutableCollection") public/*package*/ open class A</*0*/ T : kotlin.Any!> : java.util.AbstractCollection<T!>, kotlin.MutableCollection<T> {
|
||||
public/*package*/ constructor A</*0*/ T : kotlin.Any!>()
|
||||
public open override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*2*/ val size: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun add(/*0*/ e: T): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<T>): kotlin.Boolean
|
||||
@@ -14,6 +13,7 @@ public fun foo(): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<T>): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
@java.lang.Override() public open override /*2*/ fun iterator(): kotlin.MutableIterator<T>
|
||||
public open override /*2*/ /*fake_override*/ fun remove(/*0*/ o: T): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
|
||||
compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.txt
Vendored
+1
-1
@@ -5,7 +5,6 @@ public fun foo(): kotlin.Unit
|
||||
|
||||
@kotlin.jvm.PurelyImplements(value = "kotlin.MutableList") public/*package*/ open class A</*0*/ T : kotlin.Any!> : java.util.AbstractList<T!>, kotlin.MutableList<T> {
|
||||
public/*package*/ constructor A</*0*/ T : kotlin.Any!>()
|
||||
public open override /*2*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public open override /*2*/ val size: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun add(/*0*/ e: T): kotlin.Boolean
|
||||
@@ -19,6 +18,7 @@ public fun foo(): kotlin.Unit
|
||||
@java.lang.Override() public open override /*2*/ fun get(/*0*/ index: kotlin.Int): T
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T>
|
||||
public open override /*2*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T>
|
||||
|
||||
Vendored
+2
-2
@@ -5,7 +5,6 @@ public val y: B<kotlin.String>
|
||||
|
||||
@kotlin.jvm.PurelyImplements(value = "") public open class A</*0*/ T : kotlin.Any!> : java.util.AbstractList<T!> {
|
||||
public constructor A</*0*/ T : kotlin.Any!>()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public open override /*1*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
@@ -19,6 +18,7 @@ public val y: B<kotlin.String>
|
||||
@java.lang.Override() public open override /*1*/ fun get(/*0*/ index: kotlin.Int): T!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T!>
|
||||
@@ -44,7 +44,6 @@ public val y: B<kotlin.String>
|
||||
|
||||
@kotlin.jvm.PurelyImplements(value = "[INVALID]") public open class B</*0*/ T : kotlin.Any!> : java.util.AbstractList<T!> {
|
||||
public constructor B</*0*/ T : kotlin.Any!>()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
@@ -58,6 +57,7 @@ public val y: B<kotlin.String>
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): T!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T!>
|
||||
|
||||
+1
-1
@@ -5,7 +5,6 @@ public fun foo(): kotlin.Unit
|
||||
|
||||
@kotlin.jvm.PurelyImplements(value = "kotlin.MutableList") public/*package*/ open class A</*0*/ T : kotlin.Any!, /*1*/ V : kotlin.Any!> : java.util.AbstractList<T!> {
|
||||
public/*package*/ constructor A</*0*/ T : kotlin.Any!, /*1*/ V : kotlin.Any!>()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public open override /*1*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: T!): kotlin.Boolean
|
||||
@@ -19,6 +18,7 @@ public fun foo(): kotlin.Unit
|
||||
@java.lang.Override() public open override /*1*/ fun get(/*0*/ index: kotlin.Int): T!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<T!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<T!>
|
||||
|
||||
+1
-1
@@ -13,7 +13,6 @@ public interface HalfSubstitutedTypeParameters {
|
||||
}
|
||||
|
||||
public interface TrickyList</*0*/ X : kotlin.Any!, /*1*/ E : kotlin.Any!> : kotlin.MutableList<E!> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: E!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: E!): kotlin.Unit
|
||||
@@ -24,6 +23,7 @@ public interface HalfSubstitutedTypeParameters {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<E!>): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): E!
|
||||
public abstract override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<E!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<E!>
|
||||
|
||||
Vendored
+1
-1
@@ -1,13 +1,13 @@
|
||||
package test
|
||||
|
||||
public interface SubclassOfCollection</*0*/ E : kotlin.Any!> : kotlin.MutableCollection<E!> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: E!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: kotlin.Collection<E!>): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun clear(): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun contains(/*0*/ o: E!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<E!>): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ fun iterator(): kotlin.MutableIterator<E!>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: E!): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
|
||||
+1
-1
@@ -2,7 +2,6 @@ package test
|
||||
|
||||
public open class ModalityOfFakeOverrides : java.util.AbstractList<kotlin.String!> {
|
||||
public constructor ModalityOfFakeOverrides()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public open override /*1*/ val size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: kotlin.String!): kotlin.Unit
|
||||
@@ -14,6 +13,7 @@ public open class ModalityOfFakeOverrides : java.util.AbstractList<kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
@org.jetbrains.annotations.NotNull() public open override /*1*/ fun get(/*0*/ index: kotlin.Int): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
|
||||
+1
-2
@@ -13,8 +13,6 @@ public interface HalfSubstitutedTypeParameters {
|
||||
}
|
||||
|
||||
public interface TrickyList</*0*/ X, /*1*/ E> : kotlin.MutableList<E> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun <get-size>(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: E): kotlin.Boolean
|
||||
@@ -26,6 +24,7 @@ public interface HalfSubstitutedTypeParameters {
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<E>): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): E
|
||||
public abstract override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<E>
|
||||
public abstract override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<E>
|
||||
|
||||
+1
-2
@@ -1,8 +1,6 @@
|
||||
package test
|
||||
|
||||
public interface SubclassOfCollection</*0*/ E> : kotlin.MutableCollection<E> {
|
||||
public abstract override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun <get-size>(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun add(/*0*/ e: E): kotlin.Boolean
|
||||
@@ -10,6 +8,7 @@ public interface SubclassOfCollection</*0*/ E> : kotlin.MutableCollection<E> {
|
||||
public abstract override /*1*/ /*fake_override*/ fun clear(): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun contains(/*0*/ o: E): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<E>): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract override /*1*/ fun iterator(): kotlin.MutableIterator<E>
|
||||
public abstract override /*1*/ /*fake_override*/ fun remove(/*0*/ o: E): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
|
||||
Vendored
+1
-2
@@ -2,8 +2,6 @@ package test
|
||||
|
||||
public open class ModalityOfFakeOverrides : java.util.AbstractList<kotlin.String> {
|
||||
/*primary*/ public constructor ModalityOfFakeOverrides()
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
public open override /*1*/ val size: kotlin.Int
|
||||
public open override /*1*/ fun <get-size>(): kotlin.Int
|
||||
@@ -16,6 +14,7 @@ public open class ModalityOfFakeOverrides : java.util.AbstractList<kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.String!>): kotlin.Boolean
|
||||
public open override /*1*/ fun get(/*0*/ index: kotlin.Int): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String!>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String!>
|
||||
|
||||
+1
-2
@@ -3,8 +3,6 @@ package test
|
||||
public final class C : java.util.ArrayList<kotlin.String> {
|
||||
/*primary*/ public constructor C()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -25,6 +23,7 @@ public final class C : java.util.ArrayList<kotlin.String> {
|
||||
public open override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.String
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String>
|
||||
|
||||
+1
-2
@@ -3,8 +3,6 @@ package test
|
||||
public final class C : java.util.ArrayList<kotlin.String?> {
|
||||
/*primary*/ public constructor C()
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>!
|
||||
public open override /*1*/ /*fake_override*/ val isEmpty: kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun <get-isEmpty>(): kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ val size: kotlin.Int
|
||||
@@ -25,6 +23,7 @@ public final class C : java.util.ArrayList<kotlin.String?> {
|
||||
public open override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.String?
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.MutableIterator<kotlin.String?>
|
||||
public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any?): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.MutableListIterator<kotlin.String?>
|
||||
|
||||
@@ -54,7 +54,7 @@ public interface Collection<out E> : Iterable<E> {
|
||||
/**
|
||||
* Returns `true` if the collection is empty (contains no elements), `false` otherwise.
|
||||
*/
|
||||
public val isEmpty: Boolean
|
||||
public fun isEmpty(): Boolean
|
||||
|
||||
/**
|
||||
* Checks if the specified element is contained in this collection.
|
||||
@@ -129,7 +129,7 @@ public interface MutableCollection<E> : Collection<E>, MutableIterable<E> {
|
||||
public interface List<out E> : Collection<E> {
|
||||
// Query Operations
|
||||
override val size: Int
|
||||
override val isEmpty: Boolean
|
||||
override fun isEmpty(): Boolean
|
||||
override fun contains(o: @UnsafeVariance E): Boolean
|
||||
override fun iterator(): Iterator<E>
|
||||
|
||||
@@ -233,7 +233,7 @@ public interface MutableList<E> : List<E>, MutableCollection<E> {
|
||||
public interface Set<out E> : Collection<E> {
|
||||
// Query Operations
|
||||
override val size: Int
|
||||
override val isEmpty: Boolean
|
||||
override fun isEmpty(): Boolean
|
||||
override fun contains(o: @UnsafeVariance E): Boolean
|
||||
override fun iterator(): Iterator<E>
|
||||
|
||||
@@ -279,7 +279,7 @@ public interface Map<K, out V> {
|
||||
/**
|
||||
* Returns `true` if the map is empty (contains no elements), `false` otherwise.
|
||||
*/
|
||||
public val isEmpty: Boolean
|
||||
public fun isEmpty(): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the map contains the specified [key].
|
||||
|
||||
@@ -110,7 +110,7 @@ object OperatorChecks {
|
||||
get() = isExtension || containingDeclaration is ClassDescriptor
|
||||
|
||||
private val FunctionDescriptor.noValueParameters: Boolean
|
||||
get() = valueParameters.isEmpty
|
||||
get() = valueParameters.isEmpty()
|
||||
|
||||
private val FunctionDescriptor.singleValueParameter: Boolean
|
||||
get() = valueParameters.size == 1
|
||||
|
||||
+2
-2
@@ -88,7 +88,7 @@ class KotlinGenerateSecondaryConstructorAction : KotlinGenerateMemberActionBase<
|
||||
.filter { it.isVar || context.diagnostics.forElement(it).any { it.factory in Errors.MUST_BE_INITIALIZED_DIAGNOSTICS } }
|
||||
.map { context.get(BindingContext.VARIABLE, it) as PropertyDescriptor }
|
||||
.map { DescriptorMemberChooserObject(it.source.getPsi()!!, it) }
|
||||
if (ApplicationManager.getApplication().isUnitTestMode || candidates.isEmpty) return candidates
|
||||
if (ApplicationManager.getApplication().isUnitTestMode || candidates.isEmpty()) return candidates
|
||||
|
||||
return with(MemberChooser(candidates.toTypedArray(), true, true, klass.project, false, null)) {
|
||||
title = "Choose Properties to Initialize by Constructor"
|
||||
@@ -126,7 +126,7 @@ class KotlinGenerateSecondaryConstructorAction : KotlinGenerateMemberActionBase<
|
||||
generateConstructor(classDescriptor, propertiesToInitialize, null).singletonOrEmptyList()
|
||||
}
|
||||
|
||||
if (prototypes.isEmpty) {
|
||||
if (prototypes.isEmpty()) {
|
||||
CommonRefactoringUtil.showErrorHint(targetClass.project, editor, "Constructor already exists", commandName, null)
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public interface Comparator<T> {
|
||||
|
||||
@library
|
||||
public abstract class AbstractCollection<E>() : MutableCollection<E> {
|
||||
override val isEmpty: Boolean get() = noImpl
|
||||
override fun isEmpty(): Boolean = noImpl
|
||||
override fun contains(o: E): Boolean = noImpl
|
||||
override fun iterator(): MutableIterator<E> = noImpl
|
||||
|
||||
@@ -103,7 +103,7 @@ public open class LinkedHashSet<E>(
|
||||
@library
|
||||
public open class HashMap<K, V>(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap<K, V> {
|
||||
override val size: Int get() = noImpl
|
||||
override val isEmpty: Boolean get() = noImpl
|
||||
override fun isEmpty(): Boolean = noImpl
|
||||
@Suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
|
||||
override fun get(key: K): V? = noImpl
|
||||
override fun containsKey(key: K): Boolean = noImpl
|
||||
|
||||
@@ -178,7 +178,7 @@ private fun RegExp.findNext(input: String, from: Int): MatchResult? {
|
||||
|
||||
override val groups: MatchGroupCollection = object : MatchGroupCollection {
|
||||
override val size: Int get() = match.size()
|
||||
override val isEmpty: Boolean get() = size() == 0
|
||||
override fun isEmpty(): Boolean = size() == 0
|
||||
|
||||
override fun contains(o: MatchGroup?): Boolean = this.any { it == o }
|
||||
override fun containsAll(c: Collection<MatchGroup?>): Boolean = c.all({contains(it)})
|
||||
|
||||
@@ -5,5 +5,5 @@ import java.util.ArrayList;
|
||||
fun box(): Boolean {
|
||||
val a = ArrayList<Int>();
|
||||
a.add(3)
|
||||
return !(a.isEmpty) && (ArrayList<Int>().isEmpty);
|
||||
return !(a.isEmpty()) && (ArrayList<Int>().isEmpty());
|
||||
}
|
||||
+2
-2
@@ -28,7 +28,7 @@ fun box(): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
if (a.isEmpty || !ArrayList<Int>().isEmpty) {
|
||||
if (a.isEmpty() || !ArrayList<Int>().isEmpty()) {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ fun box(): Boolean {
|
||||
assertEquals(a, b, "a == b")
|
||||
|
||||
a.clear()
|
||||
assertEquals(true, a.isEmpty, "a.isEmpty")
|
||||
assertEquals(true, a.isEmpty(), "a.isEmpty()")
|
||||
|
||||
|
||||
assertEquals(arrayOf(1, 500, 2, 3), list.toTypedArray(), "list.toTypedArray()")
|
||||
|
||||
+3
-5
@@ -398,10 +398,8 @@
|
||||
}
|
||||
return true;
|
||||
},
|
||||
isEmpty: {
|
||||
get: function () {
|
||||
return this.size === 0;
|
||||
}
|
||||
isEmpty: function () {
|
||||
return this.size === 0;
|
||||
},
|
||||
iterator: function () {
|
||||
// TODO: Do not implement mutable iterator() this way, make abstract
|
||||
@@ -972,7 +970,7 @@
|
||||
});
|
||||
|
||||
Kotlin.collectionsMax = function (c, comp) {
|
||||
if (c.isEmpty) {
|
||||
if (c.isEmpty()) {
|
||||
//TODO: which exception?
|
||||
throw new Error();
|
||||
}
|
||||
|
||||
Vendored
+11
-17
@@ -347,11 +347,9 @@
|
||||
bucketsByHash = {};
|
||||
};
|
||||
|
||||
Object.defineProperty(this, "isEmpty", {
|
||||
get: function () {
|
||||
return !buckets.length;
|
||||
}
|
||||
});
|
||||
this.isEmpty = function () {
|
||||
return !buckets.length;
|
||||
};
|
||||
|
||||
var createBucketAggregator = function (bucketFuncName) {
|
||||
return function () {
|
||||
@@ -574,10 +572,8 @@
|
||||
iterator: function () {
|
||||
return new Kotlin.PrimitiveHashMapValuesIterator(this.map.map, Object.keys(this.map.map));
|
||||
},
|
||||
isEmpty: {
|
||||
get: function () {
|
||||
return this.map.isEmpty;
|
||||
}
|
||||
isEmpty: function () {
|
||||
return this.map.isEmpty();
|
||||
},
|
||||
size: {
|
||||
get: function () {
|
||||
@@ -608,10 +604,8 @@
|
||||
return this.$size;
|
||||
}
|
||||
},
|
||||
isEmpty: {
|
||||
get: function () {
|
||||
return this.$size === 0;
|
||||
}
|
||||
isEmpty: function () {
|
||||
return this.$size === 0;
|
||||
},
|
||||
containsKey_za3rmp$: function (key) {
|
||||
// TODO: should process "__proto__" separately?
|
||||
@@ -691,7 +685,7 @@
|
||||
return this.map;
|
||||
},
|
||||
toString: function() {
|
||||
if (this.isEmpty) return "{}";
|
||||
if (this.isEmpty()) return "{}";
|
||||
var map = this.map;
|
||||
var isFirst = true;
|
||||
var builder = "{";
|
||||
@@ -1067,9 +1061,9 @@
|
||||
return hashTable.size;
|
||||
}});
|
||||
|
||||
Object.defineProperty(this, "isEmpty", { get: function () {
|
||||
return hashTable.isEmpty;
|
||||
}});
|
||||
this.isEmpty = function () {
|
||||
return hashTable.isEmpty();
|
||||
};
|
||||
|
||||
this.clone = function () {
|
||||
var h = new HashSet(hashingFunction, equalityFunction);
|
||||
|
||||
@@ -11,7 +11,7 @@ fun box(): String {
|
||||
assertTrue((stdlib_emptyListClass() as Any) is List<*>, "stdlib_emptyListClass() is List<*> #2")
|
||||
assertTrue((stdlib_emptyListClass() as Any) !is ArrayList<*>, "stdlib_emptyListClass() !is ArrayList<*>")
|
||||
|
||||
assertTrue(stdlib_emptyListClass().isEmpty, "stdlib_emptyListClass().isEmpty")
|
||||
assertTrue(stdlib_emptyListClass().isEmpty(), "stdlib_emptyListClass().isEmpty()")
|
||||
assertTrue(stdlib_emptyListClass().size() == 0, "stdlib_emptyListClass().size() == 0")
|
||||
|
||||
return "OK"
|
||||
|
||||
@@ -10175,7 +10175,7 @@ public fun <T> Array<out T>.asList(): List<T> {
|
||||
public fun BooleanArray.asList(): List<Boolean> {
|
||||
return object : AbstractList<Boolean>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Boolean): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Boolean> = this@asList.iterator() as MutableIterator<Boolean>
|
||||
override fun get(index: Int): Boolean = this@asList[index]
|
||||
@@ -10191,7 +10191,7 @@ public fun BooleanArray.asList(): List<Boolean> {
|
||||
public fun ByteArray.asList(): List<Byte> {
|
||||
return object : AbstractList<Byte>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Byte): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Byte> = this@asList.iterator() as MutableIterator<Byte>
|
||||
override fun get(index: Int): Byte = this@asList[index]
|
||||
@@ -10207,7 +10207,7 @@ public fun ByteArray.asList(): List<Byte> {
|
||||
public fun CharArray.asList(): List<Char> {
|
||||
return object : AbstractList<Char>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Char): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Char> = this@asList.iterator() as MutableIterator<Char>
|
||||
override fun get(index: Int): Char = this@asList[index]
|
||||
@@ -10223,7 +10223,7 @@ public fun CharArray.asList(): List<Char> {
|
||||
public fun DoubleArray.asList(): List<Double> {
|
||||
return object : AbstractList<Double>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Double): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Double> = this@asList.iterator() as MutableIterator<Double>
|
||||
override fun get(index: Int): Double = this@asList[index]
|
||||
@@ -10239,7 +10239,7 @@ public fun DoubleArray.asList(): List<Double> {
|
||||
public fun FloatArray.asList(): List<Float> {
|
||||
return object : AbstractList<Float>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Float): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Float> = this@asList.iterator() as MutableIterator<Float>
|
||||
override fun get(index: Int): Float = this@asList[index]
|
||||
@@ -10255,7 +10255,7 @@ public fun FloatArray.asList(): List<Float> {
|
||||
public fun IntArray.asList(): List<Int> {
|
||||
return object : AbstractList<Int>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Int): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Int> = this@asList.iterator() as MutableIterator<Int>
|
||||
override fun get(index: Int): Int = this@asList[index]
|
||||
@@ -10271,7 +10271,7 @@ public fun IntArray.asList(): List<Int> {
|
||||
public fun LongArray.asList(): List<Long> {
|
||||
return object : AbstractList<Long>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Long): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Long> = this@asList.iterator() as MutableIterator<Long>
|
||||
override fun get(index: Int): Long = this@asList[index]
|
||||
@@ -10287,7 +10287,7 @@ public fun LongArray.asList(): List<Long> {
|
||||
public fun ShortArray.asList(): List<Short> {
|
||||
return object : AbstractList<Short>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Short): Boolean = this@asList.contains(o)
|
||||
override fun iterator(): MutableIterator<Short> = this@asList.iterator() as MutableIterator<Short>
|
||||
override fun get(index: Int): Short = this@asList[index]
|
||||
|
||||
@@ -24,13 +24,6 @@ public inline fun Collection<*>.size() = size
|
||||
@Deprecated("Use property 'size' instead", ReplaceWith("this.size"))
|
||||
public inline fun Map<*, *>.size() = size
|
||||
|
||||
@Deprecated("Use property 'isEmpty' instead", ReplaceWith("this.isEmpty"))
|
||||
public inline fun Collection<*>.isEmpty() = isEmpty
|
||||
|
||||
@Deprecated("Use property 'isEmpty' instead", ReplaceWith("this.isEmpty"))
|
||||
public inline fun Map<*, *>.isEmpty() = isEmpty
|
||||
|
||||
|
||||
@Deprecated("Use property 'key' instead", ReplaceWith("this.key"))
|
||||
public fun <K, V> Map.Entry<K, V>.getKey(): K = key
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ internal object EmptyList : List<Nothing>, Serializable {
|
||||
override fun toString(): String = "[]"
|
||||
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: Nothing): Boolean = false
|
||||
override fun containsAll(c: Collection<Nothing>): Boolean = c.isEmpty()
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ private class MapWithDefaultImpl<K, out V>(public override val map: Map<K,V>, pr
|
||||
override fun hashCode(): Int = map.hashCode()
|
||||
override fun toString(): String = map.toString()
|
||||
override val size: Int get() = map.size()
|
||||
override val isEmpty: Boolean get() = map.isEmpty()
|
||||
override fun isEmpty(): Boolean = map.isEmpty()
|
||||
override fun containsKey(key: K): Boolean = map.containsKey(key)
|
||||
override fun containsValue(value: @UnsafeVariance V): Boolean = map.containsValue(value)
|
||||
override fun get(key: K): V? = map.get(key)
|
||||
@@ -81,7 +81,7 @@ private class MutableMapWithDefaultImpl<K, V>(public override val map: MutableMa
|
||||
override fun hashCode(): Int = map.hashCode()
|
||||
override fun toString(): String = map.toString()
|
||||
override val size: Int get() = map.size()
|
||||
override val isEmpty: Boolean get() = map.isEmpty()
|
||||
override fun isEmpty(): Boolean = map.isEmpty()
|
||||
override fun containsKey(key: K): Boolean = map.containsKey(key)
|
||||
override fun containsValue(value: @UnsafeVariance V): Boolean = map.containsValue(value)
|
||||
override fun get(key: K): V? = map.get(key)
|
||||
|
||||
@@ -12,7 +12,7 @@ private object EmptyMap : Map<Any, Nothing>, Serializable {
|
||||
override fun toString(): String = "{}"
|
||||
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
|
||||
override fun containsKey(key: Any): Boolean = false
|
||||
override fun containsValue(value: Nothing): Boolean = false
|
||||
|
||||
@@ -13,7 +13,7 @@ internal object EmptySet : Set<Nothing>, Serializable {
|
||||
override fun toString(): String = "[]"
|
||||
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun isEmpty(): Boolean = true
|
||||
override fun contains(o: Nothing): Boolean = false
|
||||
override fun containsAll(c: Collection<Nothing>): Boolean = c.isEmpty()
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ private class MatcherMatchResult(private val matcher: Matcher, private val input
|
||||
|
||||
override val groups: MatchGroupCollection = object : MatchGroupCollection {
|
||||
override val size: Int get() = matchResult.groupCount() + 1
|
||||
override val isEmpty: Boolean get() = false
|
||||
override fun isEmpty(): Boolean = false
|
||||
override fun contains(o: MatchGroup?): Boolean = this.any({ it == o })
|
||||
override fun containsAll(c: Collection<MatchGroup?>): Boolean = c.all({contains(it)})
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
"""
|
||||
return object : AbstractList<T>(), RandomAccess {
|
||||
override val size: Int get() = this@asList.size()
|
||||
override val isEmpty: Boolean get() = this@asList.isEmpty()
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user