Files
kotlin-fork/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.kt
T

15 lines
302 B
Kotlin
Vendored

// FIR_IDENTICAL
// WITH_RUNTIME
class MyClass(val value: String)
operator fun MyClass.provideDelegate(host: Any?, p: Any): String =
this.value
operator fun String.getValue(receiver: Any?, p: Any): String =
this
val testO by MyClass("O")
val testK by "K"
val testOK = testO + testK