Type narrowing is not allowed if variable is reassigned after the use site inside if block #1764
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Current implementation is very conservative when looking for assignments during application of type narrowing.
variable is reassigned after the usage of narrowed type but type narrowing still not kicked in
The text was updated successfully, but these errors were encountered: