-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Missing type guard with Arrays #9469
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
Comments
If the type was |
OK, thanks for the explanation. |
Changing Why is assigning a type other than |
Thanks everyone! |
TypeScript Version: 1.8.0
Code
Expected behavior:
myAny should be of type any[] and not any after the check.
Tested with Visual Studio 2015 Update 2 and TypeScript Playground mouse hover.
And compile should break.
The text was updated successfully, but these errors were encountered: