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

This commit is contained in:
Daniel Rosenwasser committed 2015-12-11 15:04:27 -08:00
1 parent 8cceedd725
commit 3cdfc36109
3 files changed
+12

No files matched your search

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