Files
kotlin-fork/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.kt.txt
T
2020-11-26 00:14:25 +03:00

41 lines
795 B
Plaintext
Vendored

class Delegate {
constructor(value: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val value: String
field = value
get
operator fun getValue(thisRef: Any?, property: Any?): String {
return <this>.<get-value>()
}
}
class DelegateProvider {
constructor(value: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val value: String
field = value
get
operator fun provideDelegate(thisRef: Any?, property: Any?): Delegate {
return Delegate(value = <this>.<get-value>())
}
}
val testTopLevel: String /* by */
field = DelegateProvider(value = "OK").provideDelegate(thisRef = null, property = ::testTopLevel)
get(): String {
return #testTopLevel$delegate.getValue(thisRef = null, property = ::testTopLevel)
}