Skip to content

Commit 3cdfc36

Browse files
Added tests for 'void' return type compatibilty on overloads and implementations.
1 parent 8cceedd commit 3cdfc36

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function f(x: string): number;
2+
function f(x: string): void {
3+
return;
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function f(x: string): void;
2+
function f(x: string): number {
3+
return 0;
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function f(x: string): void;
2+
function f(x: string): void {
3+
return;
4+
}

0 commit comments

Comments
 (0)