Skip to content

Commit f7d8e3b

Browse files
committed
Add regression test
1 parent 919e682 commit f7d8e3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,3 +501,7 @@ function updateIds2<T extends { [x: string]: string }, K extends keyof T>(
501501
var x = obj[key];
502502
stringMap[x]; // Should be OK.
503503
}
504+
505+
// Repro from #13514
506+
507+
declare function head<T extends Array<any>>(list: T): T[0];

0 commit comments

Comments
 (0)