Accept new baselines
This commit is contained in:
parent
2a91e7aab2
commit
51ccfb1201
2 changed files with 4 additions and 3 deletions
|
@ -52,7 +52,7 @@ function f(t, u, v, w, x) {
|
|||
}
|
||||
|
||||
f({ a: 12, b: 'hi', c: null }, undefined, { c: false, d: 12, b: undefined }, 101, 'nope');
|
||||
>f({ a: 12, b: 'hi', c: null }, undefined, { c: false, d: 12, b: undefined }, 101, 'nope') : string | number
|
||||
>f({ a: 12, b: 'hi', c: null }, undefined, { c: false, d: 12, b: undefined }, 101, 'nope') : 101 | "nope"
|
||||
>f : <T extends { a: number; b: string; }, U, V extends { c: boolean; }, W, X>(t: T, u: U, v: V, w: W, x: X) => W | X
|
||||
>{ a: 12, b: 'hi', c: null } : { a: number; b: string; c: null; }
|
||||
>a : number
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error TS2318: Cannot find global type 'IterableIterator'.
|
||||
tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts(6,1): error TS2345: Argument of type '[]' is not assignable to parameter of type 'never'.
|
||||
tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts(6,1): error TS2554: Expected 2 arguments, but got 1.
|
||||
|
||||
|
||||
!!! error TS2318: Cannot find global type 'IterableIterator'.
|
||||
|
@ -11,4 +11,5 @@ tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts(6,1): err
|
|||
|
||||
call(function* (a: 'a') { }); // error, 2nd argument required
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2345: Argument of type '[]' is not assignable to parameter of type 'never'.
|
||||
!!! error TS2554: Expected 2 arguments, but got 1.
|
||||
!!! related TS6210 tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts:3:5: An argument for 'args' was not provided.
|
Loading…
Reference in a new issue