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

Add a 'never' type #1052

Closed
dcodeIO opened this issue Jan 10, 2020 · 1 comment
Closed

Add a 'never' type #1052

dcodeIO opened this issue Jan 10, 2020 · 1 comment

Comments

@dcodeIO
Copy link
Member

dcodeIO commented Jan 10, 2020

There are situations where an error in a sub-expression can result in the type of something expected to have a type remaining void, like in a += 1 if a is not found, ultimately hitting an assertion. I added a naive workaround for this in #1046, but a never type indicating this condition would make more sense in that we can for example suppress follow-up errors further down the road.

@dcodeIO
Copy link
Member Author

dcodeIO commented May 28, 2020

Closing this issue as part of 2020 vacuum because it seems unlikely to be picked up, and is rather an internal thing. It also isn't necessary to keep this open for me to remember, and there might be alternatives to a never type.

@dcodeIO dcodeIO closed this as completed May 28, 2020
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