Create from usage: Fixed typo.
This commit is contained in:
@@ -1106,7 +1106,7 @@ public class CreateMethodFromUsageFix extends CreateFromUsageFixBase {
|
|||||||
returnJetType = new JetTypeImpl(returnJetType.getAnnotations(), returnJetType.getConstructor(), returnJetType.isNullable(),
|
returnJetType = new JetTypeImpl(returnJetType.getAnnotations(), returnJetType.getConstructor(), returnJetType.isNullable(),
|
||||||
returnJetTypeArguments, returnJetType.getMemberScope());
|
returnJetTypeArguments, returnJetType.getMemberScope());
|
||||||
TypeOrExpressionThereof returnType = new TypeOrExpressionThereof(returnJetType);
|
TypeOrExpressionThereof returnType = new TypeOrExpressionThereof(returnJetType);
|
||||||
return new CreateMethodFromUsageFix(forExpr, iterableType, "next", returnType, new ArrayList<Parameter>());
|
return new CreateMethodFromUsageFix(forExpr, iterableType, "iterator", returnType, new ArrayList<Parameter>());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user