Add regression test

This commit is contained in:
Anders Hejlsberg 2018-03-21 10:03:48 -07:00 committed by Daniel Rosenwasser
parent 03c4809d5a
commit 02a3a74e3b

View File

@ -0,0 +1,9 @@
// @strict: true
// @declaration: true
// Repro from #22755
export declare function foo<T>(obj: T): T extends () => infer P ? P : never;
export function bar<T>(obj: T) {
return foo(obj);
}