Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/delegatedPropertyMangling.kt
T
2022-12-14 21:46:41 +00:00

23 lines
434 B
Kotlin
Vendored

// 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-MJRKSbM\(Ljava/lang/Object;Lkotlin/reflect/KProperty;\)I
// 1 public getI-lPtA-2M\(\)I
// 1 public abstract getI-lPtA-2M\(\)I