Skip to content

Commit deaa37c

Browse files
committed
Accept new baselines
1 parent f47e7b2 commit deaa37c

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/baselines/reference/unionThisTypeInFunctions.errors.txt

+4-12
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ tests/cases/conformance/types/thisType/unionThisTypeInFunctions.ts(10,5): error
55
Type '(this: Real, n: number) => void' is not assignable to type '(this: Fake, n: number) => void'.
66
The 'this' types of each signature are incompatible.
77
Type 'Fake' is not assignable to type 'Real'.
8-
Types of property 'method' are incompatible.
9-
Type '(this: Fake, n: number) => void' is not assignable to type '(this: Real, n: number) => void'.
10-
The 'this' types of each signature are incompatible.
11-
Type 'Real' is not assignable to type 'Fake'.
12-
Types of property 'data' are incompatible.
13-
Type 'string' is not assignable to type 'number'.
8+
Types of property 'data' are incompatible.
9+
Type 'number' is not assignable to type 'string'.
1410

1511

1612
==== tests/cases/conformance/types/thisType/unionThisTypeInFunctions.ts (1 errors) ====
@@ -32,11 +28,7 @@ tests/cases/conformance/types/thisType/unionThisTypeInFunctions.ts(10,5): error
3228
!!! error TS2684: Type '(this: Real, n: number) => void' is not assignable to type '(this: Fake, n: number) => void'.
3329
!!! error TS2684: The 'this' types of each signature are incompatible.
3430
!!! error TS2684: Type 'Fake' is not assignable to type 'Real'.
35-
!!! error TS2684: Types of property 'method' are incompatible.
36-
!!! error TS2684: Type '(this: Fake, n: number) => void' is not assignable to type '(this: Real, n: number) => void'.
37-
!!! error TS2684: The 'this' types of each signature are incompatible.
38-
!!! error TS2684: Type 'Real' is not assignable to type 'Fake'.
39-
!!! error TS2684: Types of property 'data' are incompatible.
40-
!!! error TS2684: Type 'string' is not assignable to type 'number'.
31+
!!! error TS2684: Types of property 'data' are incompatible.
32+
!!! error TS2684: Type 'number' is not assignable to type 'string'.
4133
}
4234

0 commit comments

Comments
 (0)