Files
kotlin-fork/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.kt.txt
T
2024-02-16 10:19:38 +00:00

38 lines
734 B
Kotlin
Vendored

val testO: String /* by */
field = MyClass(value = "O").provideDelegate(host = null, p = ::testO)
get(): String {
return #testO$delegate.getValue(receiver = null, p = ::testO)
}
val testK: String /* by */
field = "K"
get(): String {
return #testK$delegate.getValue(receiver = null, p = ::testK)
}
val testOK: String
field = <get-testO>().plus(other = <get-testK>())
get
class MyClass {
val value: String
field = value
get
constructor(value: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
operator fun String.getValue(receiver: Any?, p: Any): String {
return <this>
}
operator fun MyClass.provideDelegate(host: Any?, p: Any): String {
return <this>.<get-value>()
}