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

41 lines
795 B
Plaintext
Vendored

object Host {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
class StringDelegate {
constructor(s: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val s: String
field = s
get
operator fun getValue(receiver: String, p: Any): String {
return receiver.plus(other = <this>.<get-s>())
}
}
operator fun String.provideDelegate(host: Any?, p: Any): StringDelegate {
return StringDelegate(s = <this>)
}
val String.plusK: String /* by */
field = (<this>, "K").provideDelegate(host = <this>, p = Host::plusK)
get(): String {
return <this>.#plusK$delegate.getValue(receiver = <this>, p = Host::plusK)
}
val ok: String
field = (<this>, "O").<get-plusK>()
get
}