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

Go To Definition on call expression of union signature only shows one constituent signature #31559

Open
andrewbranch opened this issue May 23, 2019 · 0 comments
Labels
Bug A bug in TypeScript Domain: Symbol Navigation Relates to go-to-definition, find-all-references, highlighting/occurrences.
Milestone

Comments

@andrewbranch
Copy link
Member

TypeScript Version: 6a559e3

Search Terms: go to definition call expression union signature

Code

interface A {
    (): string
}
interface B {
    (): number
}

declare const fn: A | B;
fn(); // Go To Definition here

Expected behavior:
Should show three definitions: declare const fn: A | B, the call signature from A, and the call signature from B

Actual behavior:
Shows only declare const fn: A | B and the call signature from A

image

Playground Link

@andrewbranch andrewbranch added the Bug A bug in TypeScript label May 23, 2019
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone May 23, 2019
@DanielRosenwasser DanielRosenwasser added the Domain: Symbol Navigation Relates to go-to-definition, find-all-references, highlighting/occurrences. label Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Symbol Navigation Relates to go-to-definition, find-all-references, highlighting/occurrences.
Projects
None yet
Development

No branches or pull requests

3 participants