IR: deserialize backing field annotations
Probably going to be necessary for handling imported @JvmField annotated declarations.
This commit is contained in:
@@ -61,7 +61,11 @@ class IrLazyField(
|
||||
symbol.bind(this)
|
||||
}
|
||||
|
||||
override val annotations: MutableList<IrConstructorCall> = mutableListOf()
|
||||
override val annotations: MutableList<IrConstructorCall> by lazy {
|
||||
descriptor.backingField?.annotations
|
||||
?.mapNotNullTo(mutableListOf(), typeTranslator.constantValueGenerator::generateAnnotationConstructorCall)
|
||||
?: mutableListOf()
|
||||
}
|
||||
|
||||
override val descriptor: PropertyDescriptor = symbol.descriptor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user