Fix SOE when recursive type argument is used with star projection
#KT-41043 Fixed
This commit is contained in:
+3
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user