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 multiple exports of the same module #3897

Merged
merged 3 commits into from
Nov 23, 2022

Conversation

hubertp
Copy link
Contributor

@hubertp hubertp commented Nov 22, 2022

Pull Request Description

Previously, when exporting the same module multiple times only the first statement would count and the rest would be discarded by the compiler.

This change allows for multiple exports of the same module e.g.,

export project.F1
from project.F1 export foo

Multiple exports may however lead to conflicts when combined with hiding names. Added logic in ImportResolver to detect such scenarios.

This fixes https://www.pivotaltracker.com/n/projects/2539304/stories/183092447

Important Notes

Added a bunch of scenarios to simulate pos and neg results.

Checklist

Please include the following checklist in your PR:

  • The documentation has been updated if necessary.
  • All code conforms to the
    Scala,
    Java,
    and
    Rust
    style guides.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed: Enso GUI was tested when built using BOTH
      ./run ide build and ./run ide watch.

Previously, when exporting the same module multiple times only the first
statement would count and the rest would be discarded by the compiler.

This change allows for multiple exports of the same module e.g.,
```
export project.F1
from project.F1 export foo
```
Multiple exports may however lead to conflicts when combined with hiding
names. Added logic in `ImportResolver` to detect such scenarios.

This fixes https://www.pivotaltracker.com/n/projects/2539304/stories/183092447
@hubertp hubertp force-pushed the wip/hubert/multiple-exports-183092447 branch from 77e965a to 48a3ff6 Compare November 23, 2022 08:21
@hubertp hubertp added the CI: Ready to merge This PR is eligible for automatic merge label Nov 23, 2022
@mergify mergify bot merged commit deb6707 into develop Nov 23, 2022
@mergify mergify bot deleted the wip/hubert/multiple-exports-183092447 branch November 23, 2022 11:41
mergify bot pushed a commit that referenced this pull request Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants