-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unused import" incorrectly triggered if import is used implicitly #40
Comments
@xenomachina Thank you. I'll take care of it after work. |
shyiko
added a commit
that referenced
this issue
May 23, 2017
Fixed in 0.6.2 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Suppose I have an extension method that adds an iterator to some type:
In another package, I want to iterate using this in a
for
loop:With the import the code compiles and works, but ktlint fails with an "Unused import" error.
Without the import, the Kotlin compiler fails with "Error:(...) Kotlin: For-loop range must have an 'iterator()' method").
This probably happens with other
operator
extension functions that are called implicitly, though I haven't tested.The text was updated successfully, but these errors were encountered: