Skip to content
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

Infix extension functions throw "Unused import" errors #25

Closed
REggar opened this issue Jan 25, 2017 · 2 comments
Closed

Infix extension functions throw "Unused import" errors #25

REggar opened this issue Jan 25, 2017 · 2 comments

Comments

@REggar
Copy link
Contributor

REggar commented Jan 25, 2017

Steps to reproduce:
infixfunc.kt

package test

infix fun Int.infixfunc(x: Int): Int {
    return x
}

error.kt

package test2

import test.infixfunc

class error {
    init {
        1 infixfunc 2
    }
}

Error returned:

error.kt:3:1: Unused import

It's worth noting that using it as a standard extension works correctly.

@shyiko
Copy link
Collaborator

shyiko commented Jan 25, 2017

Thank you! Fixed in d9cf92c. 0.3.1 is on its way (it should become available within ~30 minutes or so (Maven Central sync)).

@shyiko shyiko closed this as completed Jan 25, 2017
@REggar
Copy link
Contributor Author

REggar commented Jan 25, 2017

Lightning fast! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants