You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type inference behave different with or without destructure #28599
This is a duplicate of #23613 and several others like it. The core design limitation is that the control flow analyzer doesn't track mutually dependent variables. We're tracking the issue in #12184.
Activity
AlCalzone commentedon Nov 19, 2018
AFAIK, typescript doesn't narrow the type from one variable (
kind) to a seperate one (data).ahejlsberg commentedon Nov 19, 2018
This is a duplicate of #23613 and several others like it. The core design limitation is that the control flow analyzer doesn't track mutually dependent variables. We're tracking the issue in #12184.
typescript-bot commentedon Dec 12, 2018
This issue has been marked as a duplicate and has seen no activity in the last day. It has been closed automatic house-keeping purposes.