[NI] Minor. Fix IOE.
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
55181541af
commit
0f0d834c23
@@ -70,6 +70,8 @@ fun captureFromArguments(
|
||||
status: CaptureStatus,
|
||||
acceptNewCapturedType: ((argumentIndex: Int, NewCapturedType) -> Unit) = DO_NOTHING_2
|
||||
): SimpleType? {
|
||||
if (type.arguments.size != type.constructor.parameters.size) return null
|
||||
|
||||
val arguments = type.arguments
|
||||
if (arguments.all { it.projectionKind == Variance.INVARIANT }) return null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user