K2/LC: set hasBackingField to false for expect properties

#KT-61173 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-08-18 18:23:51 +02:00
committed by Space Team
parent 6b217369a8
commit 5ee50f50b5
6 changed files with 977 additions and 24 deletions
@@ -81,7 +81,7 @@ val FirPropertySymbol.canNarrowDownGetterType: Boolean
// See [BindingContext.BACKING_FIELD_REQUIRED]
val FirProperty.hasBackingField: Boolean
get() {
if (isAbstract) return false
if (isAbstract || isExpect) return false
if (delegate != null) return false
if (hasExplicitBackingField) return true
if (symbol is FirSyntheticPropertySymbol) return false