-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type in tooltip resolves correctly. Then resolves to any
. Emit always resolves correctly
#33067
Comments
However, if you compile, the output will always emit correctly.
|
This is also probably related, Something about tsserver is probably caching some result or re-computing some result incorrectly =/ |
Alternative repro,
Video link: https://imgur.com/a/6H0eRqr |
Just speculating but this is how I would imagine a fix to be,
Also speculating, this is what I imagine is happening right now,
Then, when generating the tooltip for |
I tried the first repro and the Reload Window repro and couldn't get either to work with 3.8 or 3.5. Notably, I had to |
Ah, I watched the video and I see that it's not the whole type that becomes any; I got the second repro to work, where you request the type of aliasedTable2 first. I can't tell whether the repro works on 3.8 because the type is |
I guess the next step is to minimise the 3.5 repro to eliminate the variability in Mapper vs SafeMapper. |
Never mind, 3.8 is just better at retaining type aliases; |
TypeScript Version: 3.5.1
Search Terms:
Code
TL;DR
Here are two video links that demonstrate the problem,
TODO Minimal repro
So, first, the set up,
6fcd75d9a9572c1c782db983c1c773282b37ce6a
npm install
The repro,
aliasedTable
, resolves correctlyaliasedTable2
, resolves correctlyaliasedTable2
, resolve toany
<-- Wtf?aliasedTable
, resolve toany
<-- Wtf?aliasedTable2
, resolve toany
<-- Wtf?aliasedTable
, resolve toany
<-- Wtf?Video link: https://imgur.com/a/iXukNKS
I tried to upload logs folowing instructions from #32086 (comment) but...
![image](https://user-images.githubusercontent.com/5655961/63635554-d6be3e80-c631-11e9-8c1e-50b1913ab9f7.png)
Expected behavior:
Type resolution should not flip-flop between correct results and
any
Actual behavior:
Type resolution flip-flops between correct results and
any
Playground Link:
TODO Minimal repro
Video link: https://imgur.com/a/iXukNKS
Related Issues:
Might be related to #32707
The text was updated successfully, but these errors were encountered: