Minor, workaround IDE exception KT-38521

This commit is contained in:
Alexander Udalov
2020-04-23 14:46:04 +02:00
parent 73a6dc6d1e
commit 22bf23025a
@@ -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)