2e5b783cc6
Previously, the semantic was more-or-less correct for most of the cases but some corner one, like `sort` in MutableList didn't work properly. Namely, `sort` should be marked there in a way to forbid to call it everywhere beside super-calls. Also, overriding it should be allowed. Mostly, the logic was re-written to K2 model from K1-related JvmBuiltInsCustomizer. ^KT-57694 In progress ^KT-57269 Fixed
22 lines
638 B
Kotlin
Vendored
22 lines
638 B
Kotlin
Vendored
// FULL_JDK
|
|
|
|
class DGenericIterator<T>(d: Iterator<T>) : Iterator<T> by d
|
|
|
|
class DGenericListIterator<T>(d: ListIterator<T>) : ListIterator<T> by d
|
|
|
|
class DGenericIterable<T>(d: Iterable<T>) : Iterable<T> by d
|
|
|
|
class DGenericCollection<T>(d: Collection<T>) : Collection<T> by d
|
|
|
|
class DGenericSet<T>(d: Set<T>) : Set<T> by d
|
|
|
|
class DGenericList<T>(d: List<T>) : List<T> by d
|
|
|
|
class DGenericMap<K, V>(d: Map<K, V>) : Map<K, V> by d
|
|
|
|
class DGenericMapEntry<K, V>(d: Map.Entry<K, V>) : Map.Entry<K, V> by d
|
|
|
|
class DGenericCollectionBySet<T>(d: Set<T>) : Collection<T> by d
|
|
|
|
class DGenericCollectionByList<T>(d: List<T>) : Collection<T> by d
|