Skip to content

Fixes broken emit with useDefineForClassFields + private field#35898

Merged
sandersn merged 2 commits intomicrosoft:masterfrom
hikarino-my:fix35590
Jan 9, 2020
Merged

Fixes broken emit with useDefineForClassFields + private field#35898
sandersn merged 2 commits intomicrosoft:masterfrom
hikarino-my:fix35590

Conversation

@hikarino-my
Copy link
Copy Markdown
Contributor

Add check for whether the class property is originated from a parameter.
Fixes #35590

@msftclas
Copy link
Copy Markdown

msftclas commented Dec 29, 2019

CLA assistant check
All CLA requirements met.

Copy link
Copy Markdown

@robpalme robpalme left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@sandersn
Copy link
Copy Markdown
Member

sandersn commented Jan 9, 2020

Thanks for the fix @hikarinotomadoi !

@sandersn sandersn merged commit 5fc917b into microsoft:master Jan 9, 2020
@hikarino-my hikarino-my deleted the fix35590 branch January 9, 2020 18:29
Kingwl pushed a commit to Kingwl/TypeScript that referenced this pull request Mar 4, 2020
…soft#35898)

* Fixes broken emit with useDefineForClassFields + private field

* use simpler function for condition
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.7.3 regression: useDefineForClassFields + private = broken emit

6 participants