-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Ensure resolved signature is cached before processing call errors #49598
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
Conversation
@typescript-bot test this |
Heya @jakebailey, I've started to run the extended test suite on this PR at a65ebb2. You can monitor the build here. |
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at a65ebb2. You can monitor the build here. |
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at a65ebb2. You can monitor the build here. Update: The results are in! |
@jakebailey |
Heya @jakebailey, I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here. |
RWC shows one change, and it looks to me like an extra error that shouldn't have been there in the first place (an assignment error where it complains both on the right side, then again on the left side about the same thing), so that seems good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``
Fixes #48636
Big thanks to @weswigham for sitting with me for 2 hours to debug this.
I couldn't move the caching code from
resolvedSignature
down intoresolveCall
;getResolvedSignature
conditionally setsresolvedSignature
before callingresolveSignature
, andresolveSignature
then calls a bunch of other functions which do other things before actually resolving the signature. If I move this caching downward where it seems like it should be, I break enough tests to crash the test host.