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