Skip star-projection to avoid failures
This commit is contained in:
+1
@@ -88,6 +88,7 @@ abstract class AbstractTypeCheckerContextForConstraintSystem : AbstractTypeCheck
|
|||||||
val typeMarker = type.asSimpleType()?.asCapturedType() ?: return null
|
val typeMarker = type.asSimpleType()?.asCapturedType() ?: return null
|
||||||
|
|
||||||
val projection = typeMarker.typeConstructorProjection()
|
val projection = typeMarker.typeConstructorProjection()
|
||||||
|
if (projection.isStarProjection()) return null
|
||||||
return if (projection.getVariance() == TypeVariance.OUT)
|
return if (projection.getVariance() == TypeVariance.OUT)
|
||||||
projection.getType().takeIf { it is SimpleTypeMarker && isMyTypeVariable(it) }?.asSimpleType()
|
projection.getType().takeIf { it is SimpleTypeMarker && isMyTypeVariable(it) }?.asSimpleType()
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user