JVM IR: Mangle delegated properties with inline class type (KT-40125)

This commit is contained in:
Steven Schäfer
2020-07-08 18:32:53 +02:00
committed by Alexander Udalov
parent e48d2b9b83
commit 097e0fb46c
4 changed files with 34 additions and 1 deletions
@@ -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