Accepted baselines.
This commit is contained in:
parent
3cdfc36109
commit
069fada0ce
7 changed files with 72 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid01.ts(1,10): error TS2394: Overload signature is not compatible with function implementation.
|
||||
|
||||
|
||||
==== tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid01.ts (1 errors) ====
|
||||
function f(x: string): number;
|
||||
~
|
||||
!!! error TS2394: Overload signature is not compatible with function implementation.
|
||||
function f(x: string): void {
|
||||
return;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
//// [functionOverloadCompatibilityWithVoid01.ts]
|
||||
function f(x: string): number;
|
||||
function f(x: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
//// [functionOverloadCompatibilityWithVoid01.js]
|
||||
function f(x) {
|
||||
return;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid02.ts(1,10): error TS2394: Overload signature is not compatible with function implementation.
|
||||
|
||||
|
||||
==== tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid02.ts (1 errors) ====
|
||||
function f(x: string): void;
|
||||
~
|
||||
!!! error TS2394: Overload signature is not compatible with function implementation.
|
||||
function f(x: string): number {
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
//// [functionOverloadCompatibilityWithVoid02.ts]
|
||||
function f(x: string): void;
|
||||
function f(x: string): number {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//// [functionOverloadCompatibilityWithVoid02.js]
|
||||
function f(x) {
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
//// [functionOverloadCompatibilityWithVoid03.ts]
|
||||
function f(x: string): void;
|
||||
function f(x: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
//// [functionOverloadCompatibilityWithVoid03.js]
|
||||
function f(x) {
|
||||
return;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
=== tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid03.ts ===
|
||||
function f(x: string): void;
|
||||
>f : Symbol(f, Decl(functionOverloadCompatibilityWithVoid03.ts, 0, 0), Decl(functionOverloadCompatibilityWithVoid03.ts, 0, 28))
|
||||
>x : Symbol(x, Decl(functionOverloadCompatibilityWithVoid03.ts, 0, 11))
|
||||
|
||||
function f(x: string): void {
|
||||
>f : Symbol(f, Decl(functionOverloadCompatibilityWithVoid03.ts, 0, 0), Decl(functionOverloadCompatibilityWithVoid03.ts, 0, 28))
|
||||
>x : Symbol(x, Decl(functionOverloadCompatibilityWithVoid03.ts, 1, 11))
|
||||
|
||||
return;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
=== tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid03.ts ===
|
||||
function f(x: string): void;
|
||||
>f : (x: string) => void
|
||||
>x : string
|
||||
|
||||
function f(x: string): void {
|
||||
>f : (x: string) => void
|
||||
>x : string
|
||||
|
||||
return;
|
||||
}
|
Loading…
Reference in a new issue