-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Strange behavior with unused imports #15449
Comments
I found this while trying out cases for #15443. |
What is the error? |
Sorry, didn't include it:
|
Interesting. I believe that both programs should be accepted and the privacy pass is wrong here. Imports are "greedy" and resolve to as many namespaces as they have access to. |
Adding a |
Yup. I think the privacy pass is getting confused by the differing privacy when multiple namespaces are involved. |
Just tried running this and confirm this is still an issue. |
By changing I feel like this is a duplicate of another ticket, but I cannot find it right now. |
#12334 and it's closed. |
Closing the . |
This program is currently accepted:
but this program, which adds a use of
B()
, is not:The text was updated successfully, but these errors were encountered: