TypeScript preserves 'override' modifier on properties in JavaScript esnext output #44273
Labels
Bug
A bug in TypeScript
Domain: JS Emit
The issue relates to the emission of JavaScript
Fix Available
A PR has been opened for this issue
Fixed
A PR has been merged for this issue
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone
Bug Report
🔎 Search Terms
override, property, esnext
🕗 Version & Regression Information
Bug in new feature of version 4.3
💻 Code
🙁 Actual behavior
Compiling this code for target esnext the override keyword on properties is preserved:
🙂 Expected behavior
The
override
keyword should be removed from the javascript output, as it is already done correctly for methods.(Compiling for other targets (e.g. es2021) works correctly as the property is transformed to a constructor initialization.)
Maybe related to #43535
The text was updated successfully, but these errors were encountered: