-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
semantic: failed to produce syntax error for undeclared private field access #7582
Comments
question: surely this is ok because you are accessing TS doesn't report a syntax error in this case:
instead you get "Property |
Private properties are lexically scoped. It's always a syntax error to use The fact that I'll admit, none of this is obvious! Everything around private properties is fiendishly complicated. Hence why I've been working on the class properties transform for weeks, and it's still not complete... |
This does not produce a syntax error, but it should because there is no
#x
property.It seems syntax checker is confusing public property
x
with private property#x
. If you rename the public property, it works as expected.Oxc playground
The text was updated successfully, but these errors were encountered: