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

Fix #32809 #33199

Merged
merged 1 commit into from
Sep 11, 2019
Merged

Fix #32809 #33199

merged 1 commit into from
Sep 11, 2019

Conversation

jack-williams
Copy link
Collaborator

@jack-williams jack-williams commented Sep 2, 2019

Fixes #32809

With this PR void variables are now assumed to be initialised, removing the possibility of used for assigned errors.

To assume a void variable is always assigned is nonsensical, but it's even more nonsensical to report errors based on whether it has, or has not, been assigned to.

This has the consequence that void is no longer narrowed under inequality.

@orta
Copy link
Contributor

orta commented Sep 11, 2019

OK, yep, I think I grok all this and it looks good to me. 👍

Thanks Jack

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.

Inconsistent/broken narrowing of void
2 participants