diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt index fc9a07e7dbe..8f2d831add7 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt @@ -111,10 +111,7 @@ private fun FirAnnotationContainer.isDefinitelyEmpty(anchorElement: FirBasedSymb fun FirAnnotationContainer.resolvedAnnotationsWithClassIds(anchorElement: FirBasedSymbol<*>): List { if (isDefinitelyEmpty(anchorElement)) return emptyList() - when (anchorElement) { - is FirBackingFieldSymbol -> anchorElement.propertySymbol - else -> anchorElement - }.lazyResolveToPhase(FirResolvePhase.TYPES) + anchorElement.lazyResolveToPhase(FirResolvePhase.TYPES) return annotations }