[LL FIR] fix lazy resolve of FirDefaultPropertyAccessor

FirDefaultPropertyAccessor was hardcoded and thus lazy resolution was not able to update it after resolution
This commit is contained in:
Ilya Kirillov
2022-08-09 10:30:26 +02:00
parent 107a8e4d92
commit e12a800b2d
@@ -43,7 +43,7 @@ abstract class FirDefaultPropertyAccessor(
) : FirPropertyAccessorImpl(
source,
moduleData,
resolvePhase = if (effectiveVisibility != null) FirResolvePhase.BODY_RESOLVE else FirResolvePhase.TYPES,
resolvePhase = FirResolvePhase.RAW_FIR,
origin,
FirDeclarationAttributes(),
status = if (effectiveVisibility == null)
@@ -64,10 +64,6 @@ abstract class FirDefaultPropertyAccessor(
annotations = mutableListOf(),
typeParameters = mutableListOf(),
) {
override var resolvePhase
get() = if (status is FirResolvedDeclarationStatus) FirResolvePhase.BODY_RESOLVE else FirResolvePhase.TYPES
set(_) {}
override val dispatchReceiverType: ConeSimpleKotlinType?
get() = propertySymbol?.dispatchReceiverType