You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
68
66
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
69
67
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
70
-
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
71
-
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
72
-
!!! error TS2322: Type 'T' is not assignable to type 'T & "text"'.
73
-
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'T & "text"'.
74
-
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
75
-
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
76
-
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
77
-
!!! error TS2322: Type 'T' is not assignable to type '"text"'.
78
-
!!! error TS2322: Type '"text" | "email"' is not assignable to type '"text"'.
79
-
!!! error TS2322: Type '"email"' is not assignable to type '"text"'.
68
+
!!! error TS2322: Type 'T' is not assignable to type 'T & "text"'.
69
+
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'T & "text"'.
70
+
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
71
+
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
72
+
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
73
+
!!! error TS2322: Type 'T' is not assignable to type '"text"'.
74
+
!!! error TS2322: Type '"text" | "email"' is not assignable to type '"text"'.
75
+
!!! error TS2322: Type '"email"' is not assignable to type '"text"'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/intersectionAndUnionTypes.errors.txt
-2
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(20,1): e
5
5
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(23,1): error TS2322: Type 'A | B' is not assignable to type '(A & B) | (C & D)'.
6
6
Type 'A' is not assignable to type '(A & B) | (C & D)'.
7
7
Type 'A' is not assignable to type 'A & B'.
8
-
Type 'A' is not assignable to type 'B'.
9
8
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(25,1): error TS2322: Type 'C | D' is not assignable to type '(A & B) | (C & D)'.
10
9
Type 'C' is not assignable to type '(A & B) | (C & D)'.
11
10
Type 'C' is not assignable to type 'C & D'.
@@ -80,7 +79,6 @@ tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(37,1): e
80
79
!!! error TS2322: Type 'A | B' is not assignable to type '(A & B) | (C & D)'.
81
80
!!! error TS2322: Type 'A' is not assignable to type '(A & B) | (C & D)'.
82
81
!!! error TS2322: Type 'A' is not assignable to type 'A & B'.
83
-
!!! error TS2322: Type 'A' is not assignable to type 'B'.
Type 'string | number | symbol' is not assignable to type 'keyof U'.
34
34
Type 'string' is not assignable to type 'keyof U'.
35
35
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(83,5): error TS2322: Type 'keyof T | keyof U' is not assignable to type 'keyof T & keyof U'.
36
+
Type 'keyof T' is not assignable to type 'keyof T & keyof U'.
36
37
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(86,5): error TS2322: Type 'keyof T | keyof U' is not assignable to type 'keyof T & keyof U'.
38
+
Type 'keyof T' is not assignable to type 'keyof T & keyof U'.
37
39
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(87,5): error TS2322: Type 'keyof T | keyof U' is not assignable to type 'keyof T & keyof U'.
40
+
Type 'keyof T' is not assignable to type 'keyof T & keyof U'.
38
41
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(103,9): error TS2322: Type 'Extract<keyof T, string>' is not assignable to type 'K'.
39
42
'Extract<keyof T, string>' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'.
40
43
Type 'string & keyof T' is not assignable to type 'K'.
tests/cases/conformance/types/union/unionTypeCallSignatures6.ts(39,1): error TS2684: The 'this' context of type 'A & C & { f0: F0 | F3; f1: F1 | F3; f2: F1 | F4; f3: F3 | F4; f4: F3 | F5; }' is not assignable to method's 'this' of type 'B'.
7
7
Property 'b' is missing in type 'A & C & { f0: F0 | F3; f1: F1 | F3; f2: F1 | F4; f3: F3 | F4; f4: F3 | F5; }' but required in type 'B'.
8
8
tests/cases/conformance/types/union/unionTypeCallSignatures6.ts(48,1): error TS2684: The 'this' context of type 'void' is not assignable to method's 'this' of type 'A & B'.
9
-
Type 'void' is not assignable to type 'A'.
10
9
tests/cases/conformance/types/union/unionTypeCallSignatures6.ts(55,1): error TS2769: No overload matches this call.
11
10
Overload 1 of 2, '(this: A & B & C): void', gave the following error.
12
11
The 'this' context of type 'void' is not assignable to method's 'this' of type 'A & B & C'.
13
12
Type 'void' is not assignable to type 'A'.
14
13
Overload 2 of 2, '(this: A & B): void', gave the following error.
15
14
The 'this' context of type 'void' is not assignable to method's 'this' of type 'A & B'.
0 commit comments