New J2K: fix IOOB exception on inference

This commit is contained in:
Ilya Kirillov
2020-03-30 14:50:18 +03:00
parent 98f2604df0
commit 51de319cc4
@@ -214,7 +214,7 @@ open class BoundTypeCalculatorImpl(
inferenceContext
) ?: return null
}
TypeParameter(argumentBoundType, constructor.parameters[i].variance)
TypeParameter(argumentBoundType, constructor.parameters.getOrNull(i)?.variance ?: return null)
}
)