This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
馃悰 Parser doesn't throw an error about the duplicate private class member #4143
Labels
A-Linter
Area: linter
enhancement
New feature request or improvement to existing functionality
good first issue
Good for newcomers
I-Easy
Implementation: easy task, usually a good fit for new contributors
S-Bug: confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
Parser doesn't throw an error about the duplicate private class member.
The duplicate private class member raises the syntax error in runtime.
Playground Link
https://docs.rome.tools/playground/?indentStyle=space"eStyle=single&trailingComma=none&lintRules=all&enabledLinting=false&code=YwBsAGEAcwBzACAAQQAgAHsACgAgACAAIwBmAG8AbwA7AAoAIAAgACMAZgBvAG8AOwAKAH0ACgA%3D
https://docs.rome.tools/playground/?indentStyle=space"eStyle=single&trailingComma=none&lintRules=all&enabledLinting=false&code=YwBsAGEAcwBzACAAQQAgAHsACgAgACAAZwBlAHQAIAAjAGYAbwBvACgAKQAgAHsAfQAKACAAIAAjAGYAbwBvADsACgB9AAoA
Expected result
Prettier and TypeScript throw an error about the duplicate private class member. Rome also throw an error?
TypeScript Playground Link
https://www.typescriptlang.org/play?#code/MYGwhgzhAECC0G8BQ1oGIBmB7L0C80AjANwrra4EBMpAvkkA
Code of Conduct
The text was updated successfully, but these errors were encountered: