K2: add partial reproduction of KT-59864
This commit is contained in:
committed by
Space Team
parent
162ba59d7f
commit
d321fa3fd9
@@ -0,0 +1,14 @@
|
||||
// WITH_STDLIB
|
||||
// ISSUE: KT-59864
|
||||
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user