mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
Move collectionStubMethodLowering before jvmInlineClassPhase, and make them interact properly. Note that some issues still remain in inline class <-> special bridges interaction. KT-40187 KT-42469
12 lines
443 B
Kotlin
Vendored
12 lines
443 B
Kotlin
Vendored
// IGNORE_ANNOTATIONS
|
|
|
|
inline class IT(val x: Int)
|
|
|
|
inline class InlineCollection(private val c: Collection<IT>) : Collection<IT> {
|
|
override val size: Int get() = c.size
|
|
override fun contains(element: IT): Boolean = c.contains(element)
|
|
override fun containsAll(elements: Collection<IT>): Boolean = c.containsAll(elements)
|
|
override fun isEmpty(): Boolean = c.isEmpty()
|
|
override fun iterator(): Iterator<IT> = c.iterator()
|
|
}
|