Support DNN types in approximator

Mostly, it's relevant to FIR since there we started loading
type parameter based types as (T & Any..T?)
This commit is contained in:
Denis.Zharkov
2022-05-12 15:19:50 +03:00
committed by teamcity
parent 9f7876efb6
commit c018270462
8 changed files with 60 additions and 2 deletions
@@ -414,7 +414,7 @@ abstract class AbstractTypeApproximator(
val argumentType = newArguments[index]?.getType() ?: argument.getType()
val capturedType = argumentType.lowerBoundIfFlexible().asCapturedType()
val capturedType = argumentType.lowerBoundIfFlexible().originalIfDefinitelyNotNullable().asCapturedType()
val capturedStarProjectionOrNull =
capturedType?.typeConstructorProjection()?.takeIf { it.isStarProjection() }