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

Fix type annotations originating in property initializers being emitted in constructor #31805

Closed
wants to merge 2 commits into from

Conversation

andrewbranch
Copy link
Member

Fixes #31792

Copy link
Member

@rbuckton rbuckton left a comment

Choose a reason for hiding this comment

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

Yeah, this is exactly the same thing I saw as well.

@@ -916,7 +916,7 @@ namespace ts {
);

const parameters = transformConstructorParameters(constructor);
const body = transformConstructorBody(node.members, constructor, parametersWithPropertyAssignments);
const body = transformConstructorBody(existingMembers, constructor, parametersWithPropertyAssignments);
Copy link
Member Author

Choose a reason for hiding this comment

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

TL;DR: node.members are the original, untransformed members; existingMembers have been transformed through visitTypeScript.

@ahejlsberg
Copy link
Member

@typescript-bot test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jun 6, 2019

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

@mheiber
Copy link
Contributor

mheiber commented Jun 7, 2019

PR that broke this was #30467, reverted in #31807

@andrewbranch
Copy link
Member Author

Closing as #30467 was reverted

@andrewbranch andrewbranch deleted the bug/31792 branch June 10, 2019 16:12
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.

Emitting type parameters (regression)
5 participants