This commit is contained in:
Anders Hejlsberg 2019-03-13 06:51:13 -07:00
parent 6656671536
commit fd0d477519

View File

@ -60,6 +60,11 @@ declare function pipe5<A, B>(f: (a: A) => B): { f: (a: A) => B };
const f50 = pipe5(list); // No higher order inference
declare function wrap3<A, B, C>(f: (a: A, b1: B, b2: B) => C): (a: A, b1: B, b2: B) => C;
declare function baz<T, U extends T>(t1: T, t2: T, u: U): [T, U];
let f60 = wrap3(baz);
// #417
function mirror<A, B>(f: (a: A) => B): (a: A) => B { return f; }