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:
+1
-1
@@ -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() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user