-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Narrow from 'any' with all type guards #5011
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
Conversation
I was about to submit the same PR yesterday. tinganho@3ea297d |
Sorry you went through that, I didn't mean to step on anyone's feet! Though in the future if you'd like to take an assigned bug on, just post a quick message on the issue saying so. |
Oh no problem. I was just thinking it was a small change and that I could quickly submit it. I didn't lose that much time. I will send a small notification next time. |
@@ -31,6 +41,8 @@ tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOfByConstru | |||
if (obj2 instanceof A) { // can't narrow type from 'any' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment out dated. please update.
LGTM, a few comments though
|
We should close this one as well. |
Is this commit already merged in master? I ❤️ this changes. |
@vvakame, no, the problem is that |
I understand! |
Fixes #4432.