Skip to content

Commit fd0d477

Browse files
committed
Add test
1 parent 6656671 commit fd0d477

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/cases/compiler/genericFunctionInference1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ declare function pipe5<A, B>(f: (a: A) => B): { f: (a: A) => B };
6060

6161
const f50 = pipe5(list); // No higher order inference
6262

63+
declare function wrap3<A, B, C>(f: (a: A, b1: B, b2: B) => C): (a: A, b1: B, b2: B) => C;
64+
declare function baz<T, U extends T>(t1: T, t2: T, u: U): [T, U];
65+
66+
let f60 = wrap3(baz);
67+
6368
// #417
6469

6570
function mirror<A, B>(f: (a: A) => B): (a: A) => B { return f; }

0 commit comments

Comments
 (0)