Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/extensionPropertyAndExtensionGetValue.kt
T
2018-06-28 12:26:41 +02:00

14 lines
250 B
Kotlin
Vendored

// IGNORE_BACKEND: 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