Skip to content

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

Merged
1 commit merged into
masterfrom
tsx-gotodef
May 11, 2017
Merged

Fix bug for goto-definition on a TSX constructor using an alias declaration#15751
1 commit merged into
masterfrom
tsx-gotodef

Conversation

@ghost
Copy link
Copy Markdown

@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
Copy Markdown
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