Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix control flow analysis of destructuring in loops#28784

Merged
ahejlsberg merged 3 commits into
mastermicrosoft/TypeScript:masterfrom
controlFlowDestructuringLoopmicrosoft/TypeScript:controlFlowDestructuringLoopCopy head branch name to clipboard
Dec 1, 2018
Merged

Fix control flow analysis of destructuring in loops#28784
ahejlsberg merged 3 commits into
mastermicrosoft/TypeScript:masterfrom
controlFlowDestructuringLoopmicrosoft/TypeScript:controlFlowDestructuringLoopCopy head branch name to clipboard

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

Fixes #28758.

@ahejlsberg

Copy link
Copy Markdown
Member Author

Short explanation is that we now treat the following as equivalent for purposes of control flow analysis:

const y = foo.x.y;
const { y } = foo.x;
const { x: { y } } = foo;

@ahejlsberg ahejlsberg merged commit 28f8fda into master Dec 1, 2018
@ahejlsberg ahejlsberg deleted the controlFlowDestructuringLoop branch December 1, 2018 15:01
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.