Fixed new/old type inference diff, sometimes causes problems in JPS
This commit is contained in:
@@ -134,7 +134,10 @@ class FirSamResolverImpl(
|
|||||||
|
|
||||||
for ((newTypeParameter, oldTypeParameter) in newTypeParameters.zip(firRegularClass.typeParameters)) {
|
for ((newTypeParameter, oldTypeParameter) in newTypeParameters.zip(firRegularClass.typeParameters)) {
|
||||||
newTypeParameter.bounds += oldTypeParameter.bounds.mapNotNull { typeRef ->
|
newTypeParameter.bounds += oldTypeParameter.bounds.mapNotNull { typeRef ->
|
||||||
FirResolvedTypeRefImpl(typeRef.source, substitutor.substituteOrSelf(typeRef.coneTypeSafe() ?: return@mapNotNull null))
|
FirResolvedTypeRefImpl(
|
||||||
|
typeRef.source,
|
||||||
|
substitutor.substituteOrSelf(typeRef.coneTypeSafe<ConeKotlinType>() ?: return@mapNotNull null)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user