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

Detect usage of names from Modules that don't own them #48

Closed
avik-pal opened this issue May 24, 2024 · 0 comments · Fixed by #50
Closed

Detect usage of names from Modules that don't own them #48

avik-pal opened this issue May 24, 2024 · 0 comments · Fixed by #50

Comments

@avik-pal
Copy link
Contributor

Consider the following case:

using FooModule

foo(::FooModule.ABC) = ...

But FooModule doesn't define ABC, but ABC is present in the module due to using Bar: ABC.

module FooModule
    using Bar: ABC
end

module Bar
    struct ABC
    end

    export ABC
end
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

Successfully merging a pull request may close this issue.

1 participant