mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 10:43:51 -05:00
Correct the declaration emit for overload implementation if there is single overload signature
Fixes #480
This commit is contained in:
@@ -23,6 +23,11 @@ export function fooWithOverloads(a: any): any {
|
||||
return a;
|
||||
}
|
||||
|
||||
export function fooWithSingleOverload(a: string): string;
|
||||
export function fooWithSingleOverload(a: any) {
|
||||
return a;
|
||||
}
|
||||
|
||||
/** This comment should appear for nonExportedFoo*/
|
||||
function nonExportedFoo() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user