Skip to content

Fix #32809 - #33199

Merged
Orta Therox (orta) merged 1 commit into
microsoft:masterfrom
jack-williams:fix-32809
Sep 11, 2019
Merged

Fix #32809#33199
Orta Therox (orta) merged 1 commit into
microsoft:masterfrom
jack-williams:fix-32809

Conversation

@jack-williams

@jack-williamsJack Williams (jack-williams) commented Sep 2, 2019

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor

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

Thanks Jack

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent/broken narrowing of void

2 participants

@jack-williams@orta