Skip to content

Commit 8a7c203

Browse files
committed
Accept new baselines
1 parent 3707f7d commit 8a7c203

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(87,5): error
4444
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(103,9): error TS2322: Type 'Extract<keyof T, string>' is not assignable to type 'K'.
4545
Type 'string & keyof T' is not assignable to type 'K'.
4646
Type 'string' is not assignable to type 'K'.
47+
Type 'string' is not assignable to type 'K'.
4748
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(105,9): error TS2322: Type 'T[Extract<keyof T, string>]' is not assignable to type 'T[K]'.
4849
Type 'Extract<keyof T, string>' is not assignable to type 'K'.
4950
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(108,5): error TS2322: Type 'T[K]' is not assignable to type 'U[K]'.
@@ -55,6 +56,7 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(114,5): error
5556
Type 'Extract<keyof T, string>' is not assignable to type 'J'.
5657
Type 'string & keyof T' is not assignable to type 'J'.
5758
Type 'string' is not assignable to type 'J'.
59+
Type 'string' is not assignable to type 'J'.
5860
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(117,5): error TS2322: Type 'T[K]' is not assignable to type 'U[J]'.
5961
Type 'T' is not assignable to type 'U'.
6062

@@ -238,6 +240,7 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(117,5): error
238240
!!! error TS2322: Type 'Extract<keyof T, string>' is not assignable to type 'K'.
239241
!!! error TS2322: Type 'string & keyof T' is not assignable to type 'K'.
240242
!!! error TS2322: Type 'string' is not assignable to type 'K'.
243+
!!! error TS2322: Type 'string' is not assignable to type 'K'.
241244
t[key] = tk; // ok, T[K] ==> T[keyof T]
242245
tk = t[key]; // error, T[keyof T] =/=> T[K]
243246
~~
@@ -264,6 +267,7 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(117,5): error
264267
!!! error TS2322: Type 'Extract<keyof T, string>' is not assignable to type 'J'.
265268
!!! error TS2322: Type 'string & keyof T' is not assignable to type 'J'.
266269
!!! error TS2322: Type 'string' is not assignable to type 'J'.
270+
!!! error TS2322: Type 'string' is not assignable to type 'J'.
267271

268272
tk = uj;
269273
uj = tk; // error

0 commit comments

Comments
 (0)