Compiler&plugin deprecations cleanup: withIndices -> withIndex or mapIndexed

This commit is contained in:
Ilya Gorbunov
2015-06-25 21:25:59 +03:00
parent f4651f22ca
commit 765733b791
5 changed files with 6 additions and 7 deletions
@@ -265,8 +265,7 @@ public class TypeResolver(
}
private fun resolveTypeProjections(c: TypeResolutionContext, constructor: TypeConstructor, argumentElements: List<JetTypeProjection>): List<TypeProjection> {
return argumentElements.withIndices().map {
val (i, argumentElement) = it
return argumentElements.mapIndexed { i, argumentElement ->
val projectionKind = argumentElement.getProjectionKind()
ModifiersChecker.checkIncompatibleVarianceModifiers(argumentElement.getModifierList(), c.trace)