Closed
Description
TypeScript Version: master: commit adfdae0
Tested on Win10 in vscode 1.6.1 (commit 9e4e44c19)
It appears doc comments are shared between only some of the overloads in the following code snippet. this may be desirable -- perhaps each overload deserves a different description. But then the current behavior is strange as well.
Code
class A {}
class B { x: number }
class C { y: number }
class D { z: number }
/**
* A doc comment.
*/
export function f(d: D): string;
export function f(c: C): string;
export function f(b: B): string;
export function f(a: A): string {
return "";
}
Expected behavior:
On hover, all overloads get a doc comment description.
Actual behavior:
Only the overloads with argument of type D
and A
get the doc comment.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
kitsonk commentedon Oct 28, 2016
This has "annoyed" me that they can't be shared by default.
mhegazy commentedon Oct 29, 2016
duplicate of #407