Added tests for 'void' return type compatibilty on overloads and implementations.

This commit is contained in:
Daniel Rosenwasser
2015-12-11 15:02:43 -08:00
parent 8cceedd725
commit 3cdfc36109
3 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
function f(x: string): number;
function f(x: string): void {
return;
}

View File

@@ -0,0 +1,4 @@
function f(x: string): void;
function f(x: string): number {
return 0;
}

View File

@@ -0,0 +1,4 @@
function f(x: string): void;
function f(x: string): void {
return;
}