Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/extensionPropertyAndExtensionGetValue.kt
T
2019-11-19 11:00:09 +03:00

14 lines
254 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class A(val o: String)
interface I {
val k: String
}
inline operator fun A.getValue(thisRef: I, property: Any): String = o + thisRef.k
class B(override val k: String) : I
val B.prop by A("O")
fun box() = B("K").prop