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

spurious warning when using exported names that are renamed with as #44754

Closed
aviatesk opened this issue Mar 26, 2022 · 0 comments · Fixed by #44827
Closed

spurious warning when using exported names that are renamed with as #44754

aviatesk opened this issue Mar 26, 2022 · 0 comments · Fixed by #44827
Labels

Comments

@aviatesk
Copy link
Member

MRE:

module A
global original() = println("Hello")
module B
import ..A: original as renamed
export renamed
end
end

using .A.B
renamed()
WARNING: could not import A.renamed into Main
Hello

I confirmed the same warning is printed on v1.7 as well.

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

Successfully merging a pull request may close this issue.

1 participant