Files
codeql/java/ql/test-kotlin2/library-tests/methods/delegates.kt
2023-11-17 14:07:13 +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")
}
}