<@U589QURRQ> commented on <@U0KBF8D7V>’s file <htt...
# announcements
u
@diesieben07 commented on @Paul Woitaschek’s file https://kotlinlang.slack.com/files/U0KBF8D7V/F5JP61XPH/-.java: If you define some extension functions on KProperty0:
Copy code
operator fun <T> KProperty0<T>.getValue(obj: Any, property: KProperty<*>): T {
    return get()
}

operator fun <T> KMutableProperty0<T>.setValue(obj: Any, property: KProperty<*>, value: T): Unit {
    set(value)
}
You can write
Copy code
class B(a: A) {
    var value by a::value
}