We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 3.7.x-dev.20191017
Code
In the comments on #33736, several issues related to control flow analysis of optional chaining constructs are mentioned. Specifically:
#33736 (comment) -- No narrowing in switch statement. #33736 (comment) -- No narrowing following assertion. #33736 (comment) -- No narrowing in false branch of if statement.
switch
if
Expected behavior:
Proper narrowing as indicated in the examples.
Actual behavior:
No narrowing.
The text was updated successfully, but these errors were encountered:
ahejlsberg
Successfully merging a pull request may close this issue.
TypeScript Version: 3.7.x-dev.20191017
Code
In the comments on #33736, several issues related to control flow analysis of optional chaining constructs are mentioned. Specifically:
#33736 (comment) -- No narrowing in
switch
statement.#33736 (comment) -- No narrowing following assertion.
#33736 (comment) -- No narrowing in false branch of
if
statement.Expected behavior:
Proper narrowing as indicated in the examples.
Actual behavior:
No narrowing.
The text was updated successfully, but these errors were encountered: