Files
codeql/java/ql/test/kotlin/library-tests/methods/delegates.kt
2022-06-27 17:59:52 +01: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")
}
}