JVM IR: fix exception on star projection in type parameter upper bound

#KT-41761 Fixed
This commit is contained in:
Alexander Udalov
2020-09-08 23:32:23 +02:00
parent 685d16ec68
commit 3d7619421f
9 changed files with 53 additions and 1 deletions
@@ -151,7 +151,8 @@ private fun TypeSystemCommonBackendContext.doesTypeContainTypeParametersWithRecu
used.remove(typeParameter)
} else {
for (i in 0 until type.argumentsCount()) {
if (!doesTypeContainTypeParametersWithRecursiveBounds(type.getArgument(i).getType(), used)) return false
val argument = type.getArgument(i)
if (!argument.isStarProjection() && !doesTypeContainTypeParametersWithRecursiveBounds(argument.getType(), used)) return false
}
}
return true