Skip to content

fix(43535): TypeScript preserves 'override' modifier in JavaScript output #43536

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

a-tarasyuk
Copy link
Contributor

Fixes #43535

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Apr 5, 2021
@Kingwl
Copy link
Contributor

Kingwl commented Apr 6, 2021

Thanks!

@DanielRosenwasser DanielRosenwasser merged commit 3a22b3e into microsoft:master Apr 6, 2021
@Kingwl Kingwl mentioned this pull request Apr 7, 2021
}

class B extends A {
override m1() {
Copy link
Member

Choose a reason for hiding this comment

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

🤦‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

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

Holy shit🤦‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Kingwl @DanielRosenwasser Could you clarify this case? //// [override12.js] does not contain override keywords.

Copy link
Contributor

Choose a reason for hiding this comment

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

But if useDefineForClassFields is on....

playground

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript preserves 'override' modifier in JavaScript output
5 participants