Skip to content

Commit fd8df1e

Browse files
committed
Accept new baseline
1 parent d4143b7 commit fd8df1e

File tree

1 file changed

+36
-40
lines changed

1 file changed

+36
-40
lines changed

tests/baselines/reference/mappedTypeRelationships.errors.txt

Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,15 @@ tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(40,5): error TS2
5050
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(41,5): error TS2322: Type 'T[keyof T]' is not assignable to type 'Partial<U>[keyof T]'.
5151
Type 'T[string]' is not assignable to type 'Partial<U>[keyof T]'.
5252
Type 'T[string]' is not assignable to type 'U[keyof T] | undefined'.
53-
Type 'T[string]' is not assignable to type 'U[keyof T]'.
54-
Type 'T[keyof T]' is not assignable to type 'U[keyof T] | undefined'.
55-
Type 'T[string]' is not assignable to type 'U[keyof T] | undefined'.
56-
Type 'T[string]' is not assignable to type 'U[keyof T]'.
57-
Type 'T[keyof T]' is not assignable to type 'U[keyof T]'.
58-
Type 'T[string]' is not assignable to type 'U[keyof T]'.
59-
Type 'T[string]' is not assignable to type 'U[string]'.
60-
Type 'T[keyof T]' is not assignable to type 'U[string]'.
61-
Type 'T[string]' is not assignable to type 'U[string]'.
62-
Type 'T' is not assignable to type 'U'.
53+
Type 'T[keyof T]' is not assignable to type 'U[keyof T] | undefined'.
54+
Type 'T[string]' is not assignable to type 'U[keyof T] | undefined'.
55+
Type 'T[string]' is not assignable to type 'U[keyof T]'.
56+
Type 'T[keyof T]' is not assignable to type 'U[keyof T]'.
57+
Type 'T[string]' is not assignable to type 'U[keyof T]'.
58+
Type 'T[string]' is not assignable to type 'U[string]'.
59+
Type 'T[keyof T]' is not assignable to type 'U[string]'.
60+
Type 'T[string]' is not assignable to type 'U[string]'.
61+
Type 'T' is not assignable to type 'U'.
6362
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(45,5): error TS2322: Type 'Partial<U>[K]' is not assignable to type 'T[K]'.
6463
Type 'U[K] | undefined' is not assignable to type 'T[K]'.
6564
Type 'undefined' is not assignable to type 'T[K]'.
@@ -70,16 +69,15 @@ tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(45,5): error TS2
7069
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(46,5): error TS2322: Type 'T[K]' is not assignable to type 'Partial<U>[K]'.
7170
Type 'T[string]' is not assignable to type 'Partial<U>[K]'.
7271
Type 'T[string]' is not assignable to type 'U[K] | undefined'.
73-
Type 'T[string]' is not assignable to type 'U[K]'.
74-
Type 'T[K]' is not assignable to type 'U[K] | undefined'.
75-
Type 'T[string]' is not assignable to type 'U[K] | undefined'.
76-
Type 'T[string]' is not assignable to type 'U[K]'.
77-
Type 'T[K]' is not assignable to type 'U[K]'.
78-
Type 'T[string]' is not assignable to type 'U[K]'.
79-
Type 'T[string]' is not assignable to type 'U[string]'.
80-
Type 'T[K]' is not assignable to type 'U[string]'.
81-
Type 'T[string]' is not assignable to type 'U[string]'.
82-
Type 'T' is not assignable to type 'U'.
72+
Type 'T[K]' is not assignable to type 'U[K] | undefined'.
73+
Type 'T[string]' is not assignable to type 'U[K] | undefined'.
74+
Type 'T[string]' is not assignable to type 'U[K]'.
75+
Type 'T[K]' is not assignable to type 'U[K]'.
76+
Type 'T[string]' is not assignable to type 'U[K]'.
77+
Type 'T[string]' is not assignable to type 'U[string]'.
78+
Type 'T[K]' is not assignable to type 'U[string]'.
79+
Type 'T[string]' is not assignable to type 'U[string]'.
80+
Type 'T' is not assignable to type 'U'.
8381
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(51,5): error TS2542: Index signature in type 'Readonly<T>' only permits reading.
8482
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(56,5): error TS2542: Index signature in type 'Readonly<T>' only permits reading.
8583
tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(61,5): error TS2322: Type 'T[keyof T]' is not assignable to type 'Readonly<U>[keyof T]'.
@@ -236,16 +234,15 @@ tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(168,5): error TS
236234
!!! error TS2322: Type 'T[keyof T]' is not assignable to type 'Partial<U>[keyof T]'.
237235
!!! error TS2322: Type 'T[string]' is not assignable to type 'Partial<U>[keyof T]'.
238236
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T] | undefined'.
239-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T]'.
240-
!!! error TS2322: Type 'T[keyof T]' is not assignable to type 'U[keyof T] | undefined'.
241-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T] | undefined'.
242-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T]'.
243-
!!! error TS2322: Type 'T[keyof T]' is not assignable to type 'U[keyof T]'.
244-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T]'.
245-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
246-
!!! error TS2322: Type 'T[keyof T]' is not assignable to type 'U[string]'.
247-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
248-
!!! error TS2322: Type 'T' is not assignable to type 'U'.
237+
!!! error TS2322: Type 'T[keyof T]' is not assignable to type 'U[keyof T] | undefined'.
238+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T] | undefined'.
239+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T]'.
240+
!!! error TS2322: Type 'T[keyof T]' is not assignable to type 'U[keyof T]'.
241+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[keyof T]'.
242+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
243+
!!! error TS2322: Type 'T[keyof T]' is not assignable to type 'U[string]'.
244+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
245+
!!! error TS2322: Type 'T' is not assignable to type 'U'.
249246
}
250247

251248
function f13<T, U extends T, K extends keyof T>(x: T, y: Partial<U>, k: K) {
@@ -263,16 +260,15 @@ tests/cases/conformance/types/mapped/mappedTypeRelationships.ts(168,5): error TS
263260
!!! error TS2322: Type 'T[K]' is not assignable to type 'Partial<U>[K]'.
264261
!!! error TS2322: Type 'T[string]' is not assignable to type 'Partial<U>[K]'.
265262
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K] | undefined'.
266-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K]'.
267-
!!! error TS2322: Type 'T[K]' is not assignable to type 'U[K] | undefined'.
268-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K] | undefined'.
269-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K]'.
270-
!!! error TS2322: Type 'T[K]' is not assignable to type 'U[K]'.
271-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K]'.
272-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
273-
!!! error TS2322: Type 'T[K]' is not assignable to type 'U[string]'.
274-
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
275-
!!! error TS2322: Type 'T' is not assignable to type 'U'.
263+
!!! error TS2322: Type 'T[K]' is not assignable to type 'U[K] | undefined'.
264+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K] | undefined'.
265+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K]'.
266+
!!! error TS2322: Type 'T[K]' is not assignable to type 'U[K]'.
267+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[K]'.
268+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
269+
!!! error TS2322: Type 'T[K]' is not assignable to type 'U[string]'.
270+
!!! error TS2322: Type 'T[string]' is not assignable to type 'U[string]'.
271+
!!! error TS2322: Type 'T' is not assignable to type 'U'.
276272
}
277273

278274
function f20<T>(x: T, y: Readonly<T>, k: keyof T) {

0 commit comments

Comments
 (0)