Skip to content

Commit 520884c

Browse files
Accepted regressive baselines.
1 parent 5e69332 commit 520884c

4 files changed

+0
-16
lines changed

tests/baselines/reference/assignmentCompatWithCallSignatures4.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
33
Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
44
Types of parameters 'arg2' and 'arg2' are incompatible.
55
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'.
86
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'.
97
Types of parameters 'y' and 'y' are incompatible.
108
Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
@@ -69,8 +67,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
6967
!!! error TS2322: Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
7068
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
7169
!!! error TS2322: Type '{ foo: number; }' is not assignable to type 'Base'.
72-
!!! error TS2322: Types of property 'foo' are incompatible.
73-
!!! error TS2322: Type 'number' is not assignable to type 'string'.
7470
b8 = a8; // error, { foo: number } and Base are incompatible
7571
~~
7672
!!! 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'.

tests/baselines/reference/assignmentCompatWithConstructSignatures4.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
33
Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
44
Types of parameters 'arg2' and 'arg2' are incompatible.
55
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'.
86
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(53,9): error TS2322: Type 'new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type 'new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
97
Types of parameters 'y' and 'y' are incompatible.
108
Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
@@ -83,8 +81,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
8381
!!! error TS2322: Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
8482
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
8583
!!! error TS2322: Type '{ foo: number; }' is not assignable to type 'Base'.
86-
!!! error TS2322: Types of property 'foo' are incompatible.
87-
!!! error TS2322: Type 'number' is not assignable to type 'string'.
8884
b8 = a8; // error
8985
~~
9086
!!! error TS2322: Type 'new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type 'new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.

tests/baselines/reference/callSignatureAssignabilityInInheritance3.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSign
1010
Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
1111
Types of parameters 'arg2' and 'arg2' are incompatible.
1212
Type '{ foo: number; }' is not assignable to type 'Base'.
13-
Types of property 'foo' are incompatible.
14-
Type 'number' is not assignable to type 'string'.
1513

1614

1715
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance3.ts (2 errors) ====
@@ -89,8 +87,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSign
8987
!!! error TS2430: Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
9088
!!! error TS2430: Types of parameters 'arg2' and 'arg2' are incompatible.
9189
!!! error TS2430: Type '{ foo: number; }' is not assignable to type 'Base'.
92-
!!! error TS2430: Types of property 'foo' are incompatible.
93-
!!! error TS2430: Type 'number' is not assignable to type 'string'.
9490
a8: <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U; // error, type mismatch
9591
}
9692

tests/baselines/reference/constructSignatureAssignabilityInInheritance3.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/construc
1010
Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
1111
Types of parameters 'arg2' and 'arg2' are incompatible.
1212
Type '{ foo: number; }' is not assignable to type 'Base'.
13-
Types of property 'foo' are incompatible.
14-
Type 'number' is not assignable to type 'string'.
1513

1614

1715
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance3.ts (2 errors) ====
@@ -79,8 +77,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/construc
7977
!!! error TS2430: Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
8078
!!! error TS2430: Types of parameters 'arg2' and 'arg2' are incompatible.
8179
!!! error TS2430: Type '{ foo: number; }' is not assignable to type 'Base'.
82-
!!! error TS2430: Types of property 'foo' are incompatible.
83-
!!! error TS2430: Type 'number' is not assignable to type 'string'.
8480
a8: new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U; // error, type mismatch
8581
}
8682

0 commit comments

Comments
 (0)