mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Accepted baselines.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user