Skip to content

Commit 80e5f2f

Browse files
committed
Add regression test
1 parent 5b9004e commit 80e5f2f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,3 +505,15 @@ function updateIds2<T extends { [x: string]: string }, K extends keyof T>(
505505
// Repro from #13514
506506

507507
declare function head<T extends Array<any>>(list: T): T[0];
508+
509+
// Repro from #13604
510+
511+
class A<T> {
512+
props: T & { foo: string };
513+
}
514+
515+
class B extends A<{ x: number}> {
516+
f(p: this["props"]) {
517+
p.x;
518+
}
519+
}

0 commit comments

Comments
 (0)