-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Bad null error in destructuring #14630
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Comments
This is a design limitation. The narrowing expression only narrows a.foo and not a itself; so when the destructring happens you still have the undefined. I will try to look up the original issue later for you. |
mhegazy
added
the
Design Limitation
Constraints of the existing architecture prevent this from being fixed
label
Mar 13, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TypeScript Version: nightly (2.3.0-dev.20170313)
Code
Expected behavior:
No errors.
Actual behavior:
May be related: #12620, #6784
The text was updated successfully, but these errors were encountered: