Files
2023-11-21 15:28:12 +00:00

13 lines
235 B
Kotlin

import kotlin.properties.Delegates
class MyClass {
val lazyProp by lazy {
5
}
var observableProp: String by Delegates.observable("<none>") {
prop, old, new ->
println("Was $old, now $new")
}
}