[FE 1.0] Don't expand type enhancement
Actually shallow type enhancement is primary, it's more specific ^KT-50734 Fixed
This commit is contained in:
committed by
teamcity
parent
59b92c02b4
commit
6c994787b3
@@ -193,7 +193,7 @@ public class TypeSubstitutor implements TypeSubstitutorMarker {
|
||||
KotlinType substitutedEnhancement = substitute(enhancement, originalProjection.getProjectionKind());
|
||||
KotlinType resultingType = TypeWithEnhancementKt.wrapEnhancement(
|
||||
substitution.getType().unwrap(),
|
||||
substitutedEnhancement instanceof TypeWithEnhancement ? ((TypeWithEnhancement) substitutedEnhancement).getEnhancement() : substitutedEnhancement
|
||||
substitutedEnhancement
|
||||
);
|
||||
|
||||
return new TypeProjectionImpl(substitution.getProjectionKind(), resultingType);
|
||||
|
||||
Reference in New Issue
Block a user