Fix extract type crash on unresolvable alias references#47136
Merged
andrewbranch merged 1 commit intomicrosoft:mainfrom Dec 13, 2021
Merged
Fix extract type crash on unresolvable alias references#47136andrewbranch merged 1 commit intomicrosoft:mainfrom
andrewbranch merged 1 commit intomicrosoft:mainfrom
Conversation
RyanCavanaugh
approved these changes
Dec 13, 2021
Member
|
@typescript-bot cherry-pick this to release-4.5 |
Collaborator
|
Heya @DanielRosenwasser, I've started to run the task to cherry-pick this into |
Collaborator
|
Hey @DanielRosenwasser, I've opened #47379 for you. |
typescript-bot
pushed a commit
to typescript-bot/TypeScript
that referenced
this pull request
Jan 11, 2022
Component commits: e61702c Fix extract type crash
DanielRosenwasser
pushed a commit
that referenced
this pull request
Jan 12, 2022
Component commits: e61702c Fix extract type crash Co-authored-by: Andrew Branch <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #32860
If you run
checker.resolveName("T", location, SymbolFlags.TypeParameter)and it returns a Symbol, you do not have a guarantee that you have a type parameter symbol. You might have an alias symbol that couldn’t be resolved.