Files
kotlin/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMapEntry.kt
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

11 lines
353 B
Kotlin
Vendored

// IGNORE_ANNOTATIONS
inline class IK(val x: Int)
inline class IV(val x: Double)
inline class InlineMutableMapEntry(private val e: MutableMap.MutableEntry<IK, IV>) : MutableMap.MutableEntry<IK, IV> {
override val key: IK get() = e.key
override val value: IV get() = e.value
override fun setValue(newValue: IV): IV = e.setValue(newValue)
}