JVM_IR KT-32115 fix $$delegatedProperties initialization in enum
This commit is contained in:
committed by
TeamCityServer
parent
3e3ffee2a0
commit
7fa04afda2
@@ -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
|
||||
Reference in New Issue
Block a user