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
This happens because getTextOfPropertyName, used by checkObjectLiteralDestructuringPropertyAssignment, returns undefined for computed properties and we don't handle that correctly. So this is another bug due to #18217.
TypeScript Version: 3.1.0-dev.20180810
Code
Expected behavior:
Error on both lines.
Actual behavior:
Error only on
0["a" + "b"]
.The text was updated successfully, but these errors were encountered: