-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone

Description
TypeScript Version: nightly
Code
interface I {
f(x: number): number;
g(): void;
h(): void;
i(): void;
f(x: string): string;
}
const i: I = undefined;
const x: number = i.f(1);
Expected behavior:
Go-to-definition on i.f(1)
goes to f(x: number)
.
Actual behavior:
Compiles correctly (using the f(x: number)
overload), but go-to-definition goes to f(x: string)
.
jwbay, tinganho, NoelAbrahams and rickmed
Metadata
Metadata
Assignees
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript