Skip to content

Fix bug for goto-definition on a TSX constructor using an alias declaration #15751

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

Merged
1 commit merged into from
May 11, 2017

Conversation

ghost
Copy link

@ghost ghost commented May 10, 2017

Fixes #15723

Given a default import, we currently don't get the aliased symbol (see section under if (symbol.flags & SymbolFlags.Alias) { in goToDefinition.ts), so symbol.valueDeclaration is undefined. This caused an exception in createDefinitionInfo.
All tests pass even with this piece of code commented out. Are there any tests that we are missing but should have?

@ghost ghost assigned yuit May 10, 2017
@mhegazy mhegazy requested a review from yuit May 10, 2017 23:25
@yuit
Copy link
Contributor

yuit commented May 11, 2017

Nop. I realize I change how error recovery is done in choose overload. So what you do is right. we no longer need that

@ghost ghost merged commit 83beae7 into master May 11, 2017
@ghost ghost deleted the tsx-gotodef branch May 11, 2017 20:12
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants