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
Copy file name to clipboardExpand all lines: tests/baselines/reference/mappedTypeRelationships.errors.txt
+44-20Lines changed: 44 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,18 @@
1
1
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(12,5): error TS2322: Type 'T[keyof T]' is not assignable to type 'U[keyof T]'.
2
-
Type 'T' is not assignable to type 'U'.
2
+
Type 'T[string]' is not assignable to type 'U[keyof T]'.
3
+
Type 'T' is not assignable to type 'U'.
3
4
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(17,5): error TS2322: Type 'T[K]' is not assignable to type 'U[K]'.
4
-
Type 'T' is not assignable to type 'U'.
5
+
Type 'T[string]' is not assignable to type 'U[K]'.
6
+
Type 'T' is not assignable to type 'U'.
5
7
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(21,5): error TS2536: Type 'keyof U' cannot be used to index type 'T'.
6
8
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(22,5): error TS2322: Type 'T[keyof U]' is not assignable to type 'U[keyof U]'.
7
-
Type 'T' is not assignable to type 'U'.
9
+
Type 'T[string]' is not assignable to type 'U[keyof U]'.
10
+
Type 'T' is not assignable to type 'U'.
8
11
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(22,12): error TS2536: Type 'keyof U' cannot be used to index type 'T'.
9
12
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(26,5): error TS2536: Type 'K' cannot be used to index type 'T'.
10
13
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(27,5): error TS2322: Type 'T[K]' is not assignable to type 'U[K]'.
11
-
Type 'T' is not assignable to type 'U'.
14
+
Type 'T[string]' is not assignable to type 'U[K]'.
15
+
Type 'T' is not assignable to type 'U'.
12
16
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(27,12): error TS2536: Type 'K' cannot be used to index type 'T'.
13
17
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(31,5): error TS2322: Type 'T[keyof T] | undefined' is not assignable to type 'T[keyof T]'.
14
18
Type 'undefined' is not assignable to type 'T[keyof T]'.
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(41,5): error TS2322: Type 'U[keyof T] | undefined' is not assignable to type 'T[keyof T]'.
18
22
Type 'undefined' is not assignable to type 'T[keyof T]'.
19
23
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(42,5): error TS2322: Type 'T[keyof T]' is not assignable to type 'U[keyof T] | undefined'.
20
-
Type 'T[keyof T]' is not assignable to type 'U[keyof T]'.
21
-
Type 'T' is not assignable to type 'U'.
24
+
Type 'T[string]' is not assignable to type 'U[keyof T] | undefined'.
25
+
Type 'T[string]' is not assignable to type 'U[keyof T]'.
26
+
Type 'T[keyof T]' is not assignable to type 'U[keyof T]'.
27
+
Type 'T[string]' is not assignable to type 'U[keyof T]'.
28
+
Type 'T' is not assignable to type 'U'.
22
29
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(46,5): error TS2322: Type 'U[K] | undefined' is not assignable to type 'T[K]'.
23
30
Type 'undefined' is not assignable to type 'T[K]'.
24
31
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(47,5): error TS2322: Type 'T[K]' is not assignable to type 'U[K] | undefined'.
25
-
Type 'T[K]' is not assignable to type 'U[K]'.
26
-
Type 'T' is not assignable to type 'U'.
32
+
Type 'T[string]' is not assignable to type 'U[K] | undefined'.
33
+
Type 'T[string]' is not assignable to type 'U[K]'.
34
+
Type 'T[K]' is not assignable to type 'U[K]'.
35
+
Type 'T[string]' is not assignable to type 'U[K]'.
36
+
Type 'T' is not assignable to type 'U'.
27
37
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(52,5): error TS2542: Index signature in type 'Readonly<T>' only permits reading.
28
38
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(57,5): error TS2542: Index signature in type 'Readonly<T>' only permits reading.
29
39
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(62,5): error TS2542: Index signature in type 'Readonly<U>' only permits reading.
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(126,5): error TS2322: Type 'Partial<U>' is not assignable to type 'Identity<U>'.
34
44
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(142,5): error TS2322: Type '{ [P in keyof T]: T[P]; }' is not assignable to type '{ [P in keyof T]: U[P]; }'.
35
45
Type 'T[P]' is not assignable to type 'U[P]'.
36
-
Type 'T' is not assignable to type 'U'.
46
+
Type 'T[string]' is not assignable to type 'U[P]'.
47
+
Type 'T' is not assignable to type 'U'.
37
48
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(147,5): error TS2322: Type '{ [P in keyof T]: T[P]; }' is not assignable to type '{ [P in keyof U]: U[P]; }'.
38
49
Type 'keyof U' is not assignable to type 'keyof T'.
39
50
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(152,5): error TS2322: Type '{ [P in K]: T[P]; }' is not assignable to type '{ [P in keyof T]: T[P]; }'.
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(167,5): error TS2322: Type '{ [P in K]: T[P]; }' is not assignable to type '{ [P in K]: U[P]; }'.
46
57
Type 'T[P]' is not assignable to type 'U[P]'.
47
-
Type 'T' is not assignable to type 'U'.
58
+
Type 'T[string]' is not assignable to type 'U[P]'.
0 commit comments