-
-
Notifications
You must be signed in to change notification settings - Fork 191
-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
10$: Error on use of this.#something
outside of class
#219
Comments
I think we'd need to track whether or not we're in a class declaration. We don't do this currently. (We do track whether or not we're in a function or a loop, though; perhaps we could have similar logic for classes.) |
@strager Can I work on this issue ? |
@saurabhraj042 Sure! |
@saurabhraj042 Are you still working on it? If not I can work on this issue. |
@strager @singalhimanshu please give me few more days to work on this , actually I got covid last month and wasn't able to work on this but I have resumed the work for now. |
@strager I would like to work on this task. |
The following code: this.#x; Should report `error_cannot_access_private_identifier_outside_class`. Fix: #219
Private identifiers in dot expressions (e.g.
this.#something
) are only legal inside of a class. Report an error if such an expression is found outside a class.The text was updated successfully, but these errors were encountered: