From fd0d477519f0b6cc54ad346e68293bcd2fbdad8b Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 13 Mar 2019 06:51:13 -0700 Subject: [PATCH] Add test --- tests/cases/compiler/genericFunctionInference1.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cases/compiler/genericFunctionInference1.ts b/tests/cases/compiler/genericFunctionInference1.ts index e91e1a81a87..c6b864f82e5 100644 --- a/tests/cases/compiler/genericFunctionInference1.ts +++ b/tests/cases/compiler/genericFunctionInference1.ts @@ -60,6 +60,11 @@ declare function pipe5(f: (a: A) => B): { f: (a: A) => B }; const f50 = pipe5(list); // No higher order inference +declare function wrap3(f: (a: A, b1: B, b2: B) => C): (a: A, b1: B, b2: B) => C; +declare function baz(t1: T, t2: T, u: U): [T, U]; + +let f60 = wrap3(baz); + // #417 function mirror(f: (a: A) => B): (a: A) => B { return f; }