@@ -5,12 +5,8 @@ tests/cases/conformance/types/thisType/unionThisTypeInFunctions.ts(10,5): error
5
5
Type '(this: Real, n: number) => void' is not assignable to type '(this: Fake, n: number) => void'.
6
6
The 'this' types of each signature are incompatible.
7
7
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'.
14
10
15
11
16
12
==== tests/cases/conformance/types/thisType/unionThisTypeInFunctions.ts (1 errors) ====
@@ -32,11 +28,7 @@ tests/cases/conformance/types/thisType/unionThisTypeInFunctions.ts(10,5): error
32
28
!!! error TS2684: Type '(this: Real, n: number) => void' is not assignable to type '(this: Fake, n: number) => void'.
33
29
!!! error TS2684: The 'this' types of each signature are incompatible.
34
30
!!! 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'.
41
33
}
42
34
0 commit comments