[FIR] Move common members in symbols up in the hierarchy

This commit is contained in:
Dmitriy Novozhilov
2023-01-25 11:46:55 +02:00
committed by Space Team
parent a83caec94f
commit d856ae1f35
3 changed files with 14 additions and 27 deletions
@@ -475,7 +475,7 @@ class FirSignatureEnhancement(
?: FakePureImplementationsProvider.getPurelyImplementedInterface(owner.symbol.classId)
?: return null
val superTypeSymbol = session.symbolProvider.getClassLikeSymbolByClassId(purelyImplementedClassId) ?: return null
val superTypeParameterSymbols = superTypeSymbol.typeParameterSymbols ?: return null
val superTypeParameterSymbols = superTypeSymbol.typeParameterSymbols
val typeParameters = owner.typeParameters
val supertypeParameterCount = superTypeParameterSymbols.size
val typeParameterCount = typeParameters.size
@@ -495,8 +495,7 @@ class FirSignatureEnhancement(
)
}
private fun enhanceSuperType(type: FirTypeRef): FirTypeRef =
private fun enhanceSuperType(type: FirTypeRef): FirTypeRef =
EnhancementSignatureParts(
session, typeQualifierResolver, null, isCovariant = false, forceOnlyHeadTypeConstructor = false,
AnnotationQualifierApplicabilityType.TYPE_USE, contextQualifiers