Skip to content

Allow multiple 'this' property assignments in Salsa #6679

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
merged 2 commits into from
Feb 2, 2016

Conversation

RyanCavanaugh
Copy link
Member

Fixes issue #6645

//// if (age >= 18) {
//// this.canVote = true;
//// } else {
//// this.canVote = false;
Copy link
Member

Choose a reason for hiding this comment

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

What is the resulting type if the assignments are of different (incompatible) types (e.g. a boolean and an arrow function)? Do you get any errors or intellisense off the resulting type?

It would be good to add a test to cover that scenario for both documentation and regression purposes.

EDIT: Per discussion - ideally would be a union type.

@billti
Copy link
Member

billti commented Feb 1, 2016

Minor comment. 👍 once that is captured.

RyanCavanaugh added a commit that referenced this pull request Feb 2, 2016
Allow multiple 'this' property assignments in Salsa
@RyanCavanaugh RyanCavanaugh merged commit 554ea1b into microsoft:master Feb 2, 2016
@RyanCavanaugh RyanCavanaugh deleted the fix6645 branch February 2, 2016 20:49
@billti billti mentioned this pull request Feb 4, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

3 participants