Skip to content

Commit bc3689f

Browse files
committed
Accept new baselines
1 parent ff83327 commit bc3689f

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

tests/baselines/reference/fixingTypeParametersRepeatedly1.symbols

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,5 @@ g("", x => null, x => x.toLowerCase());
4545
>g : Symbol(g, Decl(fixingTypeParametersRepeatedly1.ts, 1, 39), Decl(fixingTypeParametersRepeatedly1.ts, 4, 63))
4646
>x : Symbol(x, Decl(fixingTypeParametersRepeatedly1.ts, 6, 5))
4747
>x : Symbol(x, Decl(fixingTypeParametersRepeatedly1.ts, 6, 16))
48-
>x.toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, --, --))
4948
>x : Symbol(x, Decl(fixingTypeParametersRepeatedly1.ts, 6, 16))
50-
>toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, --, --))
5149

tests/baselines/reference/fixingTypeParametersRepeatedly1.types

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ declare function g();
4848
>g : { <T>(x: T, y: (p: T) => T, z: (p: T) => T): T; (): any; }
4949

5050
g("", x => null, x => x.toLowerCase());
51-
>g("", x => null, x => x.toLowerCase()) : string
51+
>g("", x => null, x => x.toLowerCase()) : any
5252
>g : { <T>(x: T, y: (p: T) => T, z: (p: T) => T): T; (): any; }
5353
>"" : ""
5454
>x => null : (x: string) => any
5555
>x : string
5656
>null : null
57-
>x => x.toLowerCase() : (x: string) => string
58-
>x : string
59-
>x.toLowerCase() : string
60-
>x.toLowerCase : () => string
61-
>x : string
62-
>toLowerCase : () => string
57+
>x => x.toLowerCase() : (x: any) => any
58+
>x : any
59+
>x.toLowerCase() : any
60+
>x.toLowerCase : any
61+
>x : any
62+
>toLowerCase : any
6363

tests/baselines/reference/fixingTypeParametersRepeatedly2.errors.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
tests/cases/compiler/fixingTypeParametersRepeatedly2.ts(11,27): error TS2345: Argument of type '(d: Derived) => Base' is not assignable to parameter of type '(p: Derived) => Derived'.
22
Type 'Base' is not assignable to type 'Derived'.
33
Property 'toBase' is missing in type 'Base'.
4-
tests/cases/compiler/fixingTypeParametersRepeatedly2.ts(17,27): error TS2345: Argument of type '(d: Derived) => Base' is not assignable to parameter of type '(p: Derived) => Derived'.
5-
Type 'Base' is not assignable to type 'Derived'.
64

75

8-
==== tests/cases/compiler/fixingTypeParametersRepeatedly2.ts (2 errors) ====
6+
==== tests/cases/compiler/fixingTypeParametersRepeatedly2.ts (1 errors) ====
97
interface Base {
108
baseProp;
119
}
@@ -26,7 +24,4 @@ tests/cases/compiler/fixingTypeParametersRepeatedly2.ts(17,27): error TS2345: Ar
2624
// The same error should be observed in both cases.
2725
declare function bar<T>(x: T, func: (p: T) => T): T;
2826
declare function bar<T>(x: T, func: (p: T) => T): T;
29-
var result = bar(derived, d => d.toBase());
30-
~~~~~~~~~~~~~~~
31-
!!! error TS2345: Argument of type '(d: Derived) => Base' is not assignable to parameter of type '(p: Derived) => Derived'.
32-
!!! error TS2345: Type 'Base' is not assignable to type 'Derived'.
27+
var result = bar(derived, d => d.toBase());

tests/baselines/reference/fixingTypeParametersRepeatedly3.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ declare function bar<T>(x: T, func: (p: T) => T): T;
6666
>T : T
6767

6868
var result2 = bar(derived, d => d.toBase());
69-
>result2 : Derived
70-
>bar(derived, d => d.toBase()) : Derived
69+
>result2 : Base
70+
>bar(derived, d => d.toBase()) : Base
7171
>bar : { <T>(x: T, func: (p: T) => T): T; <T>(x: T, func: (p: T) => T): T; }
7272
>derived : Derived
7373
>d => d.toBase() : (d: Derived) => Base

0 commit comments

Comments
 (0)