mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-08 18:11:45 -06:00
Accepted baselines.
This commit is contained in:
parent
9b507b7512
commit
e012645309
@ -1,10 +0,0 @@
|
||||
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,11 @@
|
||||
=== tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid02.ts ===
|
||||
function f(x: string): void;
|
||||
>f : Symbol(f, Decl(functionOverloadCompatibilityWithVoid02.ts, 0, 0), Decl(functionOverloadCompatibilityWithVoid02.ts, 0, 28))
|
||||
>x : Symbol(x, Decl(functionOverloadCompatibilityWithVoid02.ts, 0, 11))
|
||||
|
||||
function f(x: string): number {
|
||||
>f : Symbol(f, Decl(functionOverloadCompatibilityWithVoid02.ts, 0, 0), Decl(functionOverloadCompatibilityWithVoid02.ts, 0, 28))
|
||||
>x : Symbol(x, Decl(functionOverloadCompatibilityWithVoid02.ts, 1, 11))
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
=== tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid02.ts ===
|
||||
function f(x: string): void;
|
||||
>f : (x: string) => void
|
||||
>x : string
|
||||
|
||||
function f(x: string): number {
|
||||
>f : (x: string) => void
|
||||
>x : string
|
||||
|
||||
return 0;
|
||||
>0 : number
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user