mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
13 lines
235 B
Kotlin
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")
|
|
}
|
|
}
|