Variables referenced indirectly in their initializers are resolved to 'any' #522
Labels
Breaking Change
Would introduce errors in existing code
Fixed
A PR has been merged for this issue
Spec
Issues related to the TypeScript language specification
Milestone
The compiler already behaves as per spec, and variables referenced directly or indirectly in their initializers resolve to any. The previous implementation did not just assign them to any, by attempted to go deeper one level, here are some examples;
Now:
Was:
Now:
Was:
Now:
Was:
see tests:
The text was updated successfully, but these errors were encountered: