Add regression test

This commit is contained in:
Anders Hejlsberg 2018-05-08 09:42:21 -07:00
parent ce6fd5eeaa
commit 238177657f

View File

@ -629,3 +629,11 @@ class Unbounded<T> {
let y: {} | undefined | null = x;
}
}
// Repro from #23940
interface I7 {
x: any;
}
type Foo7<T extends number> = T;
declare function f7<K extends keyof I7>(type: K): Foo7<I7[K]>;