diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyField.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyField.kt index 3d72394044b..3c0bfc4a4b8 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyField.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyField.kt @@ -61,7 +61,11 @@ class IrLazyField( symbol.bind(this) } - override val annotations: MutableList = mutableListOf() + override val annotations: MutableList by lazy { + descriptor.backingField?.annotations + ?.mapNotNullTo(mutableListOf(), typeTranslator.constantValueGenerator::generateAnnotationConstructorCall) + ?: mutableListOf() + } override val descriptor: PropertyDescriptor = symbol.descriptor