K2: add partial reproduction of KT-59864

This commit is contained in:
Mikhail Glukhikh
2023-10-02 15:26:00 +02:00
committed by Space Team
parent 162ba59d7f
commit d321fa3fd9
6 changed files with 172 additions and 0 deletions
@@ -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")
}
}