e6f4d6e6fa
^KT-65406
38 lines
734 B
Kotlin
Vendored
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>()
|
|
}
|
|
|