[FIR] Implement proper copy utility for FirDeclarationStatus
This commit is contained in:
committed by
teamcity
parent
c7e3da8709
commit
399aaeca9d
+1
-1
@@ -52,7 +52,7 @@ class JavaAnnotationSyntheticPropertiesScope(
|
||||
name,
|
||||
isVar = false,
|
||||
it,
|
||||
function.status.copy(newModality = Modality.FINAL),
|
||||
function.status.copy(modality = Modality.FINAL),
|
||||
function.resolvePhase,
|
||||
accessor
|
||||
)
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ class JavaClassUseSiteMemberScope(
|
||||
delegateGetter = getterSymbol.fir
|
||||
delegateSetter = setterSymbol?.fir
|
||||
status = getterSymbol.fir.status.copy(
|
||||
newModality = if (takeModalityFromGetter) {
|
||||
modality = if (takeModalityFromGetter) {
|
||||
delegateGetter.modality ?: property.modality
|
||||
} else {
|
||||
chooseModalityForAccessor(property, delegateGetter)
|
||||
|
||||
Reference in New Issue
Block a user