JVM_IR KT-32115 fix $$delegatedProperties initialization in enum

This commit is contained in:
Dmitry Petrov
2020-12-30 12:15:12 +03:00
committed by TeamCityServer
parent 3e3ffee2a0
commit 7fa04afda2
9 changed files with 54 additions and 4 deletions
@@ -0,0 +1,14 @@
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
object D {
operator fun getValue(a: Any?, b: Any?): String = "OK"
}
enum class A {
GOO;
val a by D
val b = a
}
fun box() = A.GOO.b