Resolution: extract projections from captured flexible type properly

#KT-54100 Fixed
Related to KT-54196, KT-54198
This commit is contained in:
Mikhail Glukhikh
2022-09-20 13:59:29 +02:00
committed by teamcity
parent 8517249776
commit e9bb0f4fda
12 changed files with 130 additions and 4 deletions
@@ -117,7 +117,8 @@ interface NewTypeSubstitutor : TypeSubstitutorMarker {
TypeProjectionImpl(typeConstructor.projection.projectionKind, substitutedInnerType),
typeParameter = typeConstructor.typeParameter
).also { it.initializeSupertypes(substitutedSuperTypes) },
lowerType = if (capturedType.lowerType != null) substitutedInnerType else null
lowerType = if (capturedType.lowerType != null) substitutedInnerType else null,
isMarkedNullable = type.isMarkedNullable
)
}
}