Fix SOE when recursive type argument is used with star projection

#KT-41043 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-08-26 15:38:25 +03:00
parent 674e9e455f
commit 06a592c018
9 changed files with 53 additions and 1 deletions
@@ -403,7 +403,9 @@ class PostponedArgumentInputTypesResolver(
listOf(typeConstructor) + relatedVariables.filterIsInstance<TypeVariableTypeConstructor>()
}
type.arguments.isNotEmpty() -> {
type.arguments.flatMap { getAllDeeplyRelatedTypeVariables(it.type, variableDependencyProvider) }
type.arguments.flatMap {
if (it.isStarProjection) emptyList() else getAllDeeplyRelatedTypeVariables(it.type, variableDependencyProvider)
}
}
else -> emptyList()
}