Skip to content
New issue

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

check more case for empty binding patten #25263

Conversation

Kingwl
Copy link
Contributor

@Kingwl Kingwl commented Jun 27, 2018

Fixes #24634

Copy link
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!

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
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
Member

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

@Kingwl
Copy link
Contributor Author

Kingwl commented Mar 22, 2019

🙋🏻‍♂️

@RyanCavanaugh
Copy link
Member

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

@Kingwl
Copy link
Contributor Author

Kingwl commented Apr 26, 2019

@typescript-bot test this.

@typescript-bot
Copy link
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destructuring assignment doesn't check assignability
4 participants