SLC: create backing field for deprecated property
...since they still appear at JVM bytecode. Also, ULC doesn't look at deprecated annotation for bail-out criteria. ^KT-65393 fixed
This commit is contained in:
+1
-1
@@ -440,7 +440,7 @@ private fun hasBackingField(property: KtPropertySymbol): Boolean {
|
||||
val fieldUseSite = AnnotationUseSiteTarget.FIELD
|
||||
if (property.isExpect ||
|
||||
property.modality == Modality.ABSTRACT ||
|
||||
property.isHiddenOrSynthetic(fieldUseSite, fieldUseSite.toOptionalFilter())
|
||||
property.hasJvmSyntheticAnnotation(fieldUseSite.toOptionalFilter())
|
||||
) return false
|
||||
|
||||
return hasBackingFieldByPsi ?: property.hasBackingField
|
||||
|
||||
Reference in New Issue
Block a user