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

Cyclic Type Errors Occur Once per Usage #523

Open
InsertCreativityHere opened this issue Apr 19, 2023 · 0 comments
Open

Cyclic Type Errors Occur Once per Usage #523

InsertCreativityHere opened this issue Apr 19, 2023 · 0 comments
Labels
enhancement New feature or request hard
Milestone

Comments

@InsertCreativityHere
Copy link
Member

It is an error to have a cyclic type-alias, since it causes an infinite cycle when trying to resolve what the underlying type is.
But, we check for these kinds of cycles during the type-resolution phase, and we run the check once per resolution.
This has the unfortunate effect of emitting an error every single time the type-alias gets used.

It would be better to change this behavior so we only emit a single error per type-alias cycle.

@InsertCreativityHere InsertCreativityHere added this to the 0.2 milestone Apr 19, 2023
@InsertCreativityHere InsertCreativityHere modified the milestones: 0.2, Future Sep 19, 2023
@InsertCreativityHere InsertCreativityHere added enhancement New feature or request hard labels Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hard
Projects
None yet
Development

No branches or pull requests

1 participant