Skip to content

Commit 70bb2d3

Browse files
committed
Revert "Accept new baselines"
This reverts commit 11543d7.
1 parent 3abd0c8 commit 70bb2d3

18 files changed

+172
-417
lines changed

tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(13,1): error T
33
Type '{ (...items: A[][]): A[]; (...items: (A | A[])[]): A[]; }' is not assignable to type '{ <U extends ReadonlyArray<B>>(...items: U[]): B[]; (...items: B[][]): B[]; (...items: (B | B[])[]): B[]; }'.
44
Type 'A[]' is not assignable to type 'B[]'.
55
Type 'A' is not assignable to type 'B'.
6+
Property 'b' is missing in type 'A'.
67
tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error TS2322: Type 'C<A>' is not assignable to type 'ReadonlyArray<B>'.
78
Types of property 'concat' are incompatible.
89
Type '{ (...items: A[][]): A[]; (...items: (A | A[])[]): A[]; }' is not assignable to type '{ <U extends ReadonlyArray<B>>(...items: U[]): B[]; (...items: B[][]): B[]; (...items: (B | B[])[]): B[]; }'.
@@ -29,6 +30,7 @@ tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error T
2930
!!! error TS2322: Type '{ (...items: A[][]): A[]; (...items: (A | A[])[]): A[]; }' is not assignable to type '{ <U extends ReadonlyArray<B>>(...items: U[]): B[]; (...items: B[][]): B[]; (...items: (B | B[])[]): B[]; }'.
3031
!!! error TS2322: Type 'A[]' is not assignable to type 'B[]'.
3132
!!! error TS2322: Type 'A' is not assignable to type 'B'.
33+
!!! error TS2322: Property 'b' is missing in type 'A'.
3234

3335
rra = cra;
3436
rra = crb; // OK, C<B> is assignable to ReadonlyArray<A>

tests/baselines/reference/assignmentCompatWithCallSignatures3.errors.txt

Lines changed: 0 additions & 113 deletions
This file was deleted.

tests/baselines/reference/assignmentCompatWithCallSignatures4.errors.txt

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts(52,9): error TS2322: Type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U' is not assignable to type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived'.
22
Types of parameters 'y' and 'y' are incompatible.
3-
Types of parameters 'arg2' and 'arg2' are incompatible.
4-
Type '{ foo: number; }' is not assignable to type 'Base'.
5-
Types of property 'foo' are incompatible.
6-
Type 'number' is not assignable to type 'string'.
3+
Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
4+
Types of parameters 'arg2' and 'arg2' are incompatible.
5+
Type '{ foo: number; }' is not assignable to type 'Base'.
6+
Types of property 'foo' are incompatible.
7+
Type 'number' is not assignable to type 'string'.
78
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts(53,9): error TS2322: Type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
89
Types of parameters 'y' and 'y' are incompatible.
9-
Types of parameters 'arg2' and 'arg2' are incompatible.
10-
Type 'Base' is not assignable to type '{ foo: number; }'.
11-
Types of property 'foo' are incompatible.
12-
Type 'string' is not assignable to type 'number'.
10+
Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
11+
Types of parameters 'arg2' and 'arg2' are incompatible.
12+
Type 'Base' is not assignable to type '{ foo: number; }'.
13+
Types of property 'foo' are incompatible.
14+
Type 'string' is not assignable to type 'number'.
1315

1416

1517
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts (2 errors) ====
@@ -68,18 +70,20 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
6870
~~
6971
!!! error TS2322: Type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U' is not assignable to type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived'.
7072
!!! error TS2322: Types of parameters 'y' and 'y' are incompatible.
71-
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
72-
!!! error TS2322: Type '{ foo: number; }' is not assignable to type 'Base'.
73-
!!! error TS2322: Types of property 'foo' are incompatible.
74-
!!! error TS2322: Type 'number' is not assignable to type 'string'.
73+
!!! error TS2322: Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
74+
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
75+
!!! error TS2322: Type '{ foo: number; }' is not assignable to type 'Base'.
76+
!!! error TS2322: Types of property 'foo' are incompatible.
77+
!!! error TS2322: Type 'number' is not assignable to type 'string'.
7578
b8 = a8; // error, { foo: number } and Base are incompatible
7679
~~
7780
!!! error TS2322: Type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
7881
!!! error TS2322: Types of parameters 'y' and 'y' are incompatible.
79-
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
80-
!!! error TS2322: Type 'Base' is not assignable to type '{ foo: number; }'.
81-
!!! error TS2322: Types of property 'foo' are incompatible.
82-
!!! error TS2322: Type 'string' is not assignable to type 'number'.
82+
!!! error TS2322: Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
83+
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
84+
!!! error TS2322: Type 'Base' is not assignable to type '{ foo: number; }'.
85+
!!! error TS2322: Types of property 'foo' are incompatible.
86+
!!! error TS2322: Type 'string' is not assignable to type 'number'.
8387

8488

8589
var b10: <T extends Derived>(...x: T[]) => T;

tests/baselines/reference/assignmentCompatWithConstructSignatures3.errors.txt

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)