Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/delegatedPropertyMangling.kt
T
Ilya Chernikov 5b3816cce5 Test infra: refactor IGNORE_BACKEND directive
treat it as a general one, introduce *_K1 and *_K2 variants for
more specific ignoring
2022-11-12 16:28:23 +01:00

24 lines
463 B
Kotlin
Vendored

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