mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Correct the declaration emit for overload implementation if there is single overload signature
Fixes #480
This commit is contained in:
1 parent
92e3202604
commit
519ef5b383
4 files changed
+41
-1
No files matched your search
@@ -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