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
Milestone

Comments

@som-snytt
Copy link

@som-snytt som-snytt commented Feb 20, 2020

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

This comment has been minimized.

Copy link
Author

@som-snytt som-snytt commented Mar 21, 2020

Also other symbols: #10313

@SethTisue SethTisue added enhancement lint and removed lint labels Mar 21, 2020
@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.