GUIGAL Allan
09/03/2021, 4:49 PMoperator fun getValue(thisRef: Any?, property: KProperty<T>): T {
ephemient
09/03/2021, 4:59 PMGUIGAL Allan
09/03/2021, 5:01 PMephemient
09/03/2021, 5:03 PMGUIGAL Allan
09/03/2021, 5:04 PMephemient
09/03/2021, 5:07 PMval foo by ::bar
::bar
is a KProperty
that is the receiverGUIGAL Allan
09/03/2021, 5:11 PMturansky
09/03/2021, 6:41 PMinline
methodval a by myDelegate<String>()
inline fun <reified ...> myDelegate(): ReadOnlyProperty<..., T> = MyDelegate(T::class)
setValue
works inside delegate too