Skip to content

check more case for empty binding patten#25263

Merged
RyanCavanaugh merged 7 commits into
microsoft:masterfrom
Kingwl:Destructuring_assignment_assignability_check
Apr 26, 2019
Merged

check more case for empty binding patten#25263
RyanCavanaugh merged 7 commits into
microsoft:masterfrom
Kingwl:Destructuring_assignment_assignability_check

Conversation

@Kingwl
Copy link
Copy Markdown
Contributor

@Kingwl Kingwl commented Jun 27, 2018

Fixes #24634

Copy link
Copy Markdown
Member

@RyanCavanaugh RyanCavanaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix spelling and merge conflicts. Thanks!

Comment thread src/compiler/checker.ts Outdated
if (strictNullChecks && node.name.elements.length === 0) {
checkNonNullType(initializerType, node);
const needCheckInitializer = node.initializer && node.parent.parent.kind !== SyntaxKind.ForInStatement;
const needCheckWinendType = node.name.elements.length === 0;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling

@RyanCavanaugh
Copy link
Copy Markdown
Member

@Kingwl ping on this one - would be ready to merge after fixes

@Kingwl
Copy link
Copy Markdown
Contributor Author

Kingwl commented Mar 22, 2019

🙋🏻‍♂️

@RyanCavanaugh
Copy link
Copy Markdown
Member

@Kingwl I promise to merge after the conflict is resolved! 👋

@Kingwl
Copy link
Copy Markdown
Contributor Author

Kingwl commented Apr 26, 2019

@typescript-bot test this.

@typescript-bot
Copy link
Copy Markdown
Collaborator

typescript-bot commented Apr 26, 2019

Heya @Kingwl, I've started to run the extended test suite on this PR at 2acf313. You can monitor the build here. It should now contribute to this PR's status checks.

@Kingwl Kingwl force-pushed the Destructuring_assignment_assignability_check branch from 2acf313 to d88c01e Compare April 26, 2019 15:33
@RyanCavanaugh RyanCavanaugh merged commit 454b428 into microsoft:master Apr 26, 2019
@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.

Destructuring assignment doesn't check assignability

4 participants