Skip to content

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

Merged
Daniel Rosenwasser (DanielRosenwasser) merged 1 commit into
microsoft:masterfrom
a-tarasyuk:fix/43535
Apr 6, 2021
Merged

fix(43535): TypeScript preserves 'override' modifier in JavaScript output#43536
Daniel Rosenwasser (DanielRosenwasser) merged 1 commit into
microsoft:masterfrom
a-tarasyuk:fix/43535

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes #43535

@Kingwl

Copy link
Copy Markdown
Contributor

Thanks!

}

class B extends A {
override m1() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤦‍♂️

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Wenlu Wang (@Kingwl) Daniel Rosenwasser (@DanielRosenwasser) Could you clarify this case? //// [override12.js] does not contain override keywords.

Copy link
Copy Markdown
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

@microsoft 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

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