Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt
T
Denis.Zharkov 2e5b783cc6 K2: Refine how JDK members are mapped to built-in classes
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
2023-05-30 10:44:41 +00:00

22 lines
712 B
Kotlin
Vendored

// FULL_JDK
class DStringIterator(d: Iterator<String>) : Iterator<String> by d
class DStringListIterator(d: ListIterator<String>) : ListIterator<String> by d
class DStringIterable(d: Iterable<String>) : Iterable<String> by d
class DStringCollection(d: Collection<String>) : Collection<String> by d
class DStringSet(d: Set<String>) : Set<String> by d
class DStringList(d: List<String>) : List<String> by d
class DStringMap(d: Map<String, Number>) : Map<String, Number> by d
class DStringMapEntry(d: Map.Entry<String, Number>) : Map.Entry<String, Number> by d
class DStringCollectionBySet(d: Set<String>) : Collection<String> by d
class DStringCollectionByList(d: List<String>) : Collection<String> by d