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

Macros want to register usage of import #11887

Open
som-snytt opened this issue Feb 20, 2020 · 1 comment
Open

Macros want to register usage of import #11887

som-snytt opened this issue Feb 20, 2020 · 1 comment

Comments

@som-snytt
Copy link

Scala 2 macros don't have sanctioned API to mark an import as "used" wrt -Xlint.

Presumably, a macro uses inferImplicit (which doesn't mark the import as used because implicit searches probe the implicit scope multiple times) but then wants to lookupSymbol explicitly to say "yes, I used this one."

That may be possible but not convenient.

@som-snytt
Copy link
Author

Also other symbols: #10313

@SethTisue SethTisue added this to the Backlog milestone Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants