Skip to content

🤖 Cherry-pick PR #34679 into release-3.7 #34681

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

Merged

Conversation

typescript-bot
Copy link
Collaborator

This cherry-pick was triggerd by a request on #34679
Please review the diff and merge if no changes are unexpected. An LKG update commit is included seperately from the base change.
You can view the cherry-pick log here.

cc @DanielRosenwasser

weswigham and others added 2 commits October 23, 2019 19:03
Component commits:
e0b98c6 Do not consider element accesses which are neither statically bindable nor late bound as special assignments
function isLiteralLikeAccess(node) {
return ts.isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node);
}
ts.isLiteralLikeAccess = isLiteralLikeAccess;
/** x[0] OR x['a'] OR x[Symbol.y] */
Copy link
Member

Choose a reason for hiding this comment

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

Note: It is kind of silly that this doesn't work for negative numbers, but nobody's asked for it so...

@DanielRosenwasser DanielRosenwasser merged commit 49dfb5f into microsoft:release-3.7 Oct 23, 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.

3 participants