-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Conversation
There was a problem hiding this 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); |
There was a problem hiding this comment.
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
.
@typescript-bot test this |
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. |
Closing as #30467 was reverted |
Fixes #31792