Skip to content
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

Fix extract type crash on unresolvable alias references #47136

Merged
merged 1 commit into from Dec 13, 2021

Conversation

andrewbranch
Copy link
Member

@andrewbranch andrewbranch commented Dec 13, 2021

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.

@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick this to release-4.5

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 11, 2022

Heya @DanielRosenwasser, I've started to run the task to cherry-pick this into release-4.5 on this PR at e61702c. You can monitor the build here.

@typescript-bot
Copy link
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 <andrew@wheream.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
4 participants