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
The text was updated successfully, but these errors were encountered:
ShuiRuTian
changed the title
QuickInfo for ElementAccessExpression does not show correctly if its type is narrowed.
QuickInfo for ElementAccessExpression show original type when its type should be narrowed.
Aug 12, 2020
TypeScript Version: 4.0 beta
Search Terms:
Code
Expected behavior:
The quickinfo for ElementAccessExpression should also be "string"
Actual behavior:
It shows not narrowed type.
Playground Link:
https://www.typescriptlang.org/play?#code/C4TwDgpgBAKgtmKBeKBvKBLAjALigZ2ACcMA7AcygB8pSBXAGwagF8BuAWAChuAzO0gGNgGAPakovAEwAKYHnhgAlGm5RMvKHPARRm4ADpsyJCgBEhEhTMrUa9VEPY2AeheWy5ey24+e--iERcUkpLDkFBFt7DE1tSD1HIywTcw9raK4HRwBtM2wzAF02KDcCYk8qeiZvX24+AWExCWlZeVgo1SyNLVAE-TyCwtSoCwqMruynLFd3ca9uvz8GoObJLDbI5Ume+N0B-KwikbGrchsd9WBBo+Ky9PIqxgZarhYgA
Related Issues:
The text was updated successfully, but these errors were encountered: