Babel parser typescript should throw when declare is applied to accessors #13126
Labels
area: typescript
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
Bug Report
Current behavior
Parsed successfully.
Input Code
Expected behavior
Babel parser should throw class accessors should not have "declare" modifier, like we did for class methods.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
REPL
Possible Solution
Additional context
Found this issue when reviewing #13089.
The text was updated successfully, but these errors were encountered: