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
Hi, this is probably only a minor/cosmetic issue, but while trying the code in https://bugzilla.mozilla.org/show_bug.cgi?id=1069480, I found that the Typescript Compiler does not detect that a variable is used before its initialization in a for-of loop with object destructuring using a computed property name.
Hi, this is probably only a minor/cosmetic issue, but while trying the code in https://bugzilla.mozilla.org/show_bug.cgi?id=1069480, I found that the Typescript Compiler does not detect that a variable is used before its initialization in a for-of loop with object destructuring using a computed property name.
TypeScript Version:
master (a75a02c)
Code (Playground)
Expected behavior:
For 1), 2) and 3) the error "Block-scoped variable used before its declaration" should be reported.
Actual behavior:
No error reported for 1), correct errors reported for 2) and 3).
Thanks!
The text was updated successfully, but these errors were encountered: