Files
Dmitry Petrov b1bd138afb JVM_IR fix inline class <-> collection stubs issues
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
2020-10-06 17:08:24 +03:00

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()
}