Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/delegatedPropertyMangling.kt
T
Mark Punzalan 238cc7c257 [FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
2020-09-29 10:21:21 +03:00

24 lines
464 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// 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