Fix for SOE in VarianceChecker #KT-13401 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-08-10 13:05:23 +03:00
parent 82a53912a9
commit 6cf90cfc4e
5 changed files with 61 additions and 1 deletions
@@ -56,7 +56,7 @@ fun <D : TypeHolder<D>> D.checkTypePosition(
var noError = true
for (argument in arguments) {
if (argument == null || argument.typeParameter == null) continue
if (argument == null || argument.typeParameter == null || argument.projection.isStarProjection) continue
val projectionKind = TypeCheckingProcedure.getEffectiveProjectionKind(argument.typeParameter!!, argument.projection)!!
val newPosition = when (projectionKind) {