Different behaviors between actual compiler and baselines of class member override. #43533
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened 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
class override
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
I've tried the same code in playground with nightly version and with
npm install typescript@next
, and there's only one compilation error occurred:'override' modifier already seen.
. Other errors, such as'public' modifier must precede 'override' modifier.
,'static' modifier cannot be used with 'override' modifier.
and etc. can't be reproduced as baselines in https://github.com/microsoft/TypeScript/blob/master/tests/baselines/reference/override5.errors.txt , so I'm not sure which one is correct.Context: we're implementing parsing
override
syntax in swc: swc-project/swc#1541 .π Expected behavior
Not sure. Stated as above.
The text was updated successfully, but these errors were encountered: