You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
If you say this is working as intended, that's fine for me. In that case you might want to consider reverting the recent change to destructuring BindingElement.
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: