[KAPT+JVM_IR] Do not generate initializers for delegated properties.

^KT-54870 Fixed
This commit is contained in:
Mads Ager
2022-11-07 13:13:55 +01:00
committed by Alexander Udalov
parent 9dab8637a8
commit 30002e29d1
10 changed files with 342 additions and 10 deletions
@@ -0,0 +1,14 @@
package test
open class C<T>(v: T) {
operator fun getValue(p1: Any?, p2: Any?): T = v
}
class A {
@Suppress("UNRESOLVED_REFERENCE")
val x by lazy { Unresolved }
val z by C<String>("z")
val y by object: C<String>("y") {}
val a by lazy { C<String>("a") }
val b by lazy { object: C<String>("b") {} }
}