JVM IR: Mangle delegated properties with inline class type (KT-40125)
This commit is contained in:
committed by
Alexander Udalov
parent
e48d2b9b83
commit
097e0fb46c
+22
@@ -0,0 +1,22 @@
|
||||
// LANGUAGE: +InlineClasses
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
inline class I(val x: Int)
|
||||
|
||||
interface A {
|
||||
val i: I
|
||||
}
|
||||
|
||||
class Delegate {
|
||||
operator fun getValue(thisRef: Any?, prop: KProperty<*>): I {
|
||||
return I(1)
|
||||
}
|
||||
}
|
||||
|
||||
class B : A {
|
||||
override val i by Delegate()
|
||||
}
|
||||
|
||||
// 1 public final getValue-lPtA-2M\(Ljava/lang/Object;Lkotlin/reflect/KProperty;\)I
|
||||
// 1 public getI-lPtA-2M\(\)I
|
||||
// 1 public abstract getI-lPtA-2M\(\)I
|
||||
Reference in New Issue
Block a user