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

Allow local modules to self-reference #3031

Open
janmasrovira opened this issue Sep 13, 2024 · 0 comments
Open

Allow local modules to self-reference #3031

janmasrovira opened this issue Sep 13, 2024 · 0 comments

Comments

@janmasrovira
Copy link
Collaborator

Consider this example:

module example;

import Library.Delta as Delta;

module Resource;

  module Delta;
  end;

  open Delta; -- ambiguity error between imported Delta and local module Delta.
end;

There exist workarounds to avoid this problem, but most likely the most intuitive is to be able to write open Resource.Delta.

@heueristik recently found this issue when writing the specs in Juvix.

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

No branches or pull requests

1 participant