Skip to content

Fix 35842 #35895

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

Closed
wants to merge 1 commit into from
Closed

Fix 35842 #35895

wants to merge 1 commit into from

Conversation

jack-williams
Copy link
Collaborator

@jack-williams jack-williams commented Dec 28, 2019

Fixes #35842

For optional chain narrowing with inequality the maybe check should be a definitely check.

Feels like alot of code for a simple change. Is there a better way of writing this?

@ahejlsberg
Copy link
Member

@jack-williams @DanielRosenwasser I have what I think is a simpler fix in #36089.

@RyanCavanaugh
Copy link
Member

Closing in lieu of the other PR. Thanks though!

@jack-williams jack-williams deleted the fix35842 branch January 9, 2020 11:24
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.

Wrong behaviour of the compiler in the case with strict null check and optional chaining
3 participants