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
422 B
Kotlin
Vendored
12 lines
422 B
Kotlin
Vendored
// IGNORE_ANNOTATIONS
|
|
|
|
inline class IT(val x: Int)
|
|
|
|
inline class InlineSet(private val s: Set<IT>) : Set<IT> {
|
|
override val size: Int get() = s.size
|
|
override fun contains(element: IT): Boolean = s.contains(element)
|
|
override fun containsAll(elements: Collection<IT>): Boolean = s.containsAll(elements)
|
|
override fun isEmpty(): Boolean = s.isEmpty()
|
|
override fun iterator(): Iterator<IT> = s.iterator()
|
|
}
|