Skip to content

Commit 2381776

Browse files
committed
Add regression test
1 parent ce6fd5e commit 2381776

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,3 +629,11 @@ class Unbounded<T> {
629629
let y: {} | undefined | null = x;
630630
}
631631
}
632+
633+
// Repro from #23940
634+
635+
interface I7 {
636+
x: any;
637+
}
638+
type Foo7<T extends number> = T;
639+
declare function f7<K extends keyof I7>(type: K): Foo7<I7[K]>;

0 commit comments

Comments
 (0)