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

Specify errors about wrong import augment/import structures #3676

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Mar 27, 2024

Based on the response in #3646, this PR specifies a compile-time error which occurs if a main library L which is being augmented along with all augmentation libraries A1 .. Ak reachable from L via one or more import augment links forms a graph that has a cycle.

This PR also makes it an error for a <uri> in an import augment directive to denote a regular library, it must be an augmentation library. This change is also based on #3646.

Finally, this PR makes it an error for a <uri> in a regular import directive (not import augment) to denote an entity which is not a library (including: it's an error if it is an augmentation library).

@eernstg eernstg requested review from munificent and jakemac53 March 27, 2024 14:04
@eernstg eernstg changed the title Specify an error about cyclic import augment graphs, and an error about wrong uris in import augment directives Specify errors about wrong import augment/import structures Mar 27, 2024
Copy link
Member

@munificent munificent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor things but this looks great. Thank you!

working/augmentation-libraries/feature-specification.md Outdated Show resolved Hide resolved
working/augmentation-libraries/feature-specification.md Outdated Show resolved Hide resolved
working/augmentation-libraries/feature-specification.md Outdated Show resolved Hide resolved
@eernstg
Copy link
Member Author

eernstg commented Mar 27, 2024

Thanks! I made some adjustments.

Copy link
Contributor

@jakemac53 jakemac53 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@eernstg eernstg merged commit 54160e8 into main Mar 27, 2024
2 of 3 checks passed
@eernstg eernstg deleted the spec_augmentation_cycle_mar24 branch March 27, 2024 14:37
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 this pull request may close these issues.

3 participants