Skip to content

Commit 2b58a23

Browse files
committed
Accepting new baselines
1 parent 34c4b31 commit 2b58a23

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/baselines/reference/genericCallWithFunctionTypedArguments5.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
// more args not allowed
1111
var r2 = foo({ cb: <T>(x: T, y: T) => '' }); // error
1212
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13-
!!! Argument of type '{ cb: <T>(x: T, y: T) => string; }' is not assignable to parameter of type '{ cb: (t: any) => string; }'.
13+
!!! Argument of type '{ cb: <T>(x: T, y: T) => string; }' is not assignable to parameter of type '{ cb: (t: {}) => string; }'.
1414
!!! Types of property 'cb' are incompatible:
15-
!!! Type '<T>(x: T, y: T) => string' is not assignable to type '(t: any) => string'.
15+
!!! Type '<T>(x: T, y: T) => string' is not assignable to type '(t: {}) => string'.
1616
var r3 = foo({ cb: (x: string, y: number) => '' }); // error
1717
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1818
!!! Argument of type '{ cb: (x: string, y: number) => string; }' is not assignable to parameter of type '{ cb: (t: string) => string; }'.

tests/baselines/reference/inferentialTypingWithFunctionTypeNested.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ declare function identity<V>(y: V): V;
2020
>V : V
2121

2222
var s = map("", () => { return { x: identity }; });
23-
>s : any
24-
>map("", () => { return { x: identity }; }) : any
23+
>s : string
24+
>map("", () => { return { x: identity }; }) : string
2525
>map : <T, U>(x: T, f: () => { x: (s: T) => U; }) => U
26-
>() => { return { x: identity }; } : () => { x: <V>(y: V) => V; }
26+
>() => { return { x: identity }; } : () => { x: (y: string) => string; }
2727
>{ x: identity } : { x: <V>(y: V) => V; }
2828
>x : <V>(y: V) => V
2929
>identity : <V>(y: V) => V

0 commit comments

Comments
 (0)