K2/LC: set hasBackingField to false for expect properties
#KT-61173 Fixed
This commit is contained in:
committed by
Space Team
parent
6b217369a8
commit
5ee50f50b5
+2
-1
@@ -435,7 +435,8 @@ private fun hasBackingField(property: KtPropertySymbol): Boolean {
|
||||
}
|
||||
|
||||
val fieldUseSite = AnnotationUseSiteTarget.FIELD
|
||||
if (property.modality == Modality.ABSTRACT ||
|
||||
if (property.isExpect ||
|
||||
property.modality == Modality.ABSTRACT ||
|
||||
property.isHiddenOrSynthetic(fieldUseSite, fieldUseSite.toOptionalFilter())
|
||||
) return false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user