mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 07:45:18 -06:00
Accept new baselines
This commit is contained in:
parent
9a0a838d12
commit
36be6c8b68
@ -1,7 +1,7 @@
|
||||
tests/cases/conformance/types/rest/restTuplesFromContextualTypes.ts(56,7): error TS2345: Argument of type '(a: number, b: any, ...x: any[]) => void' is not assignable to parameter of type '(x: number, ...args: T) => void'.
|
||||
tests/cases/conformance/types/rest/restTuplesFromContextualTypes.ts(56,7): error TS2345: Argument of type '(a: number, b: T[0], ...x: T[number][]) => void' is not assignable to parameter of type '(x: number, ...args: T) => void'.
|
||||
Types of parameters 'b' and 'args' are incompatible.
|
||||
Type 'T' is not assignable to type '[any, ...any[]]'.
|
||||
Property '0' is missing in type 'any[]' but required in type '[any, ...any[]]'.
|
||||
Type 'T' is not assignable to type '[T[0], ...T[number][]]'.
|
||||
Property '0' is missing in type 'any[]' but required in type '[T[0], ...T[number][]]'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/types/rest/restTuplesFromContextualTypes.ts (1 errors) ====
|
||||
@ -62,10 +62,10 @@ tests/cases/conformance/types/rest/restTuplesFromContextualTypes.ts(56,7): error
|
||||
f((a, ...x) => {});
|
||||
f((a, b, ...x) => {});
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2345: Argument of type '(a: number, b: any, ...x: any[]) => void' is not assignable to parameter of type '(x: number, ...args: T) => void'.
|
||||
!!! error TS2345: Argument of type '(a: number, b: T[0], ...x: T[number][]) => void' is not assignable to parameter of type '(x: number, ...args: T) => void'.
|
||||
!!! error TS2345: Types of parameters 'b' and 'args' are incompatible.
|
||||
!!! error TS2345: Type 'T' is not assignable to type '[any, ...any[]]'.
|
||||
!!! error TS2345: Property '0' is missing in type 'any[]' but required in type '[any, ...any[]]'.
|
||||
!!! error TS2345: Type 'T' is not assignable to type '[T[0], ...T[number][]]'.
|
||||
!!! error TS2345: Property '0' is missing in type 'any[]' but required in type '[T[0], ...T[number][]]'.
|
||||
}
|
||||
|
||||
// Repro from #25288
|
||||
|
||||
@ -332,8 +332,8 @@ function f4<T extends any[]>(t: T) {
|
||||
f((...x) => {});
|
||||
>f((...x) => {}) : void
|
||||
>f : (cb: (x: number, ...args: T) => void) => void
|
||||
>(...x) => {} : (x: number, ...args: any[]) => void
|
||||
>x : [number, ...any[]]
|
||||
>(...x) => {} : (x: number, ...args: T[number][]) => void
|
||||
>x : [number, ...T[number][]]
|
||||
|
||||
f((a, ...x) => {});
|
||||
>f((a, ...x) => {}) : void
|
||||
@ -345,10 +345,10 @@ function f4<T extends any[]>(t: T) {
|
||||
f((a, b, ...x) => {});
|
||||
>f((a, b, ...x) => {}) : void
|
||||
>f : (cb: (x: number, ...args: T) => void) => void
|
||||
>(a, b, ...x) => {} : (a: number, b: any, ...x: any[]) => void
|
||||
>(a, b, ...x) => {} : (a: number, b: T[0], ...x: T[number][]) => void
|
||||
>a : number
|
||||
>b : any
|
||||
>x : any[]
|
||||
>b : T[0]
|
||||
>x : T[number][]
|
||||
}
|
||||
|
||||
// Repro from #25288
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user