diff --git a/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ReflectionReferencesGenerator.kt b/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ReflectionReferencesGenerator.kt index abe4c9fc901..154cf320c64 100644 --- a/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ReflectionReferencesGenerator.kt +++ b/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ReflectionReferencesGenerator.kt @@ -465,10 +465,10 @@ class ReflectionReferencesGenerator(statementGenerator: StatementGenerator) : St } } + @Suppress("DEPRECATION") private fun getFieldForPropertyReference(originalProperty: PropertyDescriptor) = // NB this is a hack, we really don't know if an arbitrary property has a backing field or not when { - @Suppress("DEPRECATION") originalProperty.isDelegated -> null originalProperty.getter != null -> null else -> context.symbolTable.referenceField(originalProperty)