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 · May be fixed by #3240
Open

Allow local modules to self-reference #3031

janmasrovira opened this issue Sep 13, 2024 · 0 comments · May be fixed by #3240
Assignees
Labels
enhancement New feature or request modules syntax
Milestone

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.

@lukaszcz lukaszcz added this to the 0.6.9 milestone Nov 15, 2024
@paulcadman paulcadman modified the milestones: 0.6.9, 0.6.11 Dec 2, 2024
@lukaszcz lukaszcz linked a pull request Dec 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request modules syntax
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants