mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Added tests for 'void' return type compatibilty on overloads and implementations.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user