Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixes broken emit with useDefineForClassFields + private field#35898

Merged
sandersn merged 2 commits into
microsoft:mastermicrosoft/TypeScript:masterfrom
hikarino-my:fix35590hikarino-my/TypeScript:fix35590Copy head branch name to clipboard
Jan 9, 2020
Merged

Fixes broken emit with useDefineForClassFields + private field#35898
sandersn merged 2 commits into
microsoft:mastermicrosoft/TypeScript:masterfrom
hikarino-my:fix35590hikarino-my/TypeScript:fix35590Copy head branch name to clipboard

Conversation

@hikarino-my

Copy link
Copy Markdown
Contributor

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

@msftclas

msftclas commented Dec 29, 2019

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@robpalme robpalme left a comment

Copy link
Copy Markdown

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!

Comment thread src/compiler/transformers/classFields.ts Outdated
@sandersn

sandersn commented Jan 9, 2020

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.