FE: avoid stack overflow on star projection of enhanced type parameter
#KT-47846 Fixed
This commit is contained in:
@@ -186,6 +186,7 @@ public class TypeSubstitutor implements TypeSubstitutorMarker {
|
||||
typeParameter,
|
||||
recursionDepth + 1
|
||||
);
|
||||
if (substitution.isStarProjection()) return substitution;
|
||||
|
||||
KotlinType substitutedEnhancement = substitute(enhancement, originalProjection.getProjectionKind());
|
||||
KotlinType resultingType = TypeWithEnhancementKt.wrapEnhancement(
|
||||
|
||||
Reference in New Issue
Block a user