[KAPT+JVM_IR] Do not generate initializers for delegated properties.
^KT-54870 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
9dab8637a8
commit
30002e29d1
@@ -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") {} }
|
||||
}
|
||||
Reference in New Issue
Block a user