Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel-parser(ts): Unfriendly error for duplicates access modifier #12774

Closed
1 task done
sosukesuzuki opened this issue Feb 6, 2021 · 0 comments · Fixed by #12775
Closed
1 task done

babel-parser(ts): Unfriendly error for duplicates access modifier #12774

sosukesuzuki opened this issue Feb 6, 2021 · 0 comments · Fixed by #12775
Assignees
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

Comments

@sosukesuzuki
Copy link
Member

Bug Report

  • I would like to work on a fix!

Current behavior

Syntax error Unexpected token is thrown.

class Foo {
   private public foo;
}

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)

  • Filename: babel.config.js

Environment

Possible Solution

Additional context

@sosukesuzuki sosukesuzuki self-assigned this Feb 6, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 12, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant