-
Notifications
You must be signed in to change notification settings - Fork 376
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
Module A.B
shadows definition of B
in module A
, even in a module that only imports A
#2059
Comments
Can we get a MWE that does not rely on installing a 3rd party library |
OK so this took a bit of effort to remove the external dependency, but here you go. Create a library
|
So what happens is that you can typecheck |
I don't know about "resolved incorrectly": you have conflicting module names. It's not |
To me, this seems definitely like a bug: |
The current design assumes that module names are unique so this is the expected (undefined) |
Then it should give an error. The fact that |
Using
idris2-dom
, I have the following three modules:JS/Promise.idr
Web/Fetch.idr
Main.idr
(any other module not included above comes from
idris2-dom
)If I try to compile
Main
, I get the following error from the typechecker:If I change
Main.idr
to:and then try rebuilding, it still fails. However, if I then delete the
build/
directory and then rebuild with theJS.Promise
import commented out, the compilation succeeds.The text was updated successfully, but these errors were encountered: