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
23 lines
681 B
Kotlin
Vendored
23 lines
681 B
Kotlin
Vendored
// FULL_JDK
|
|
// See also: https://youtrack.jetbrains.com/issue/KT-42330
|
|
|
|
class DIntIterator(d: Iterator<Int>) : Iterator<Int> by d
|
|
|
|
class DIntListIterator(d: ListIterator<Int>) : ListIterator<Int> by d
|
|
|
|
class DIntIterable(d: Iterable<Int>) : Iterable<Int> by d
|
|
|
|
class DIntCollection(d: Collection<Int>) : Collection<Int> by d
|
|
|
|
class DIntSet(d: Set<Int>) : Set<Int> by d
|
|
|
|
class DIntList(d: List<Int>) : List<Int> by d
|
|
|
|
class DIntMap(d: Map<Int, Double>) : Map<Int, Double> by d
|
|
|
|
class DIntMapEntry(d: Map.Entry<Int, Double>) : Map.Entry<Int, Double> by d
|
|
|
|
class DIntCollectionBySet(d: Set<Int>) : Collection<Int> by d
|
|
|
|
class DIntCollectionByList(d: List<Int>) : Collection<Int> by d
|