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

Resolve aliases before using getTypeReferenceType #24594

Merged

Conversation

weswigham
Copy link
Member

While looking at this comment, I couldn't repro the reported issue (a visibility error); but I could witness another problem with the generated file:
image

As it happens, getTypeReferenceType silently returns undefined on Aliases (resolveEntityName never returns an alias and is the only other place symbols come from when they are passed into it). So externally aliased types (aka those looked up via export specifiers) couldn't be found.

@weswigham weswigham requested a review from mhegazy June 1, 2018 21:06
@mhegazy
Copy link
Contributor

mhegazy commented Jun 4, 2018

man.. that is subtle..

@weswigham weswigham merged commit cbbf2e4 into microsoft:master Jun 4, 2018
@weswigham weswigham deleted the fix-aliased-import-type-lookup branch June 4, 2018 21:19
@weswigham
Copy link
Member Author

@mhegazy should this be ported to 2.9 since it fixes a bug in generic import type resolution?

@mhegazy
Copy link
Contributor

mhegazy commented Jun 4, 2018

yes please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants