babel-parser(ts): Unfriendly error for duplicates access modifier #12774
Labels
area: errors
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
Syntax error
Unexpected token
is thrown.Input Code
Expected behavior
Syntax recoverable error
Accessibility modifier already seen.
is thrown. Like TS. Also only the first access modifier should be included in AST.Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Environment
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: