-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Error when accessing private property in object destructuring assignment with computed name #26572
Comments
I'm really tempted to Won't Fix this because the whole "private properties can be accessed via indexing" thing feels like something we only do because we did it in 0.8, and destructuring is new enough that it doesn't feel like this would break anything major. @ajafff is this affecting you, or just something you noticed? |
I just noticed that it's inconsistent with other element access with computed names. |
Which part of it specifically? |
Not going to keep around consistency of the sake of inconsistency. |
TypeScript Version: 3.1.0-dev.20180818
Search Terms:
Code
Expected behavior:
No error on destructuring with computed property name.
Actual behavior:
Error on all statically known property names.
Playground Link:
Related Issues:
@andy-ms this was introduced in #26381 while fixing #26355
The text was updated successfully, but these errors were encountered: