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 had a sneaking suspicion that it was falling back to a higher scope. Silly javascript. I tried the last suggestion in the thread you mentioned but it seemed to work fine. I'll comment there. Thank you once again @RyanCavanaugh!
When a variable is named "name" (
let name;
) it is not checked for validity.For example:
The
tsc
command fails on this code sincet
obviously doesn't exist. However, changing nothing else but the variable used in the object's index......
tsc
doesn't complain at all about this. To me this seems like a bug. Why are variables namedname
special?Apologies if I missed an already open issue but due to the nature of the terms used to describe this issue it's kinda hard to search on.
The text was updated successfully, but these errors were encountered: