//// [compositeGenericFunction.ts] function f(value: T) { return value; }; function h(func: (x: number) => R): R { return null; } var z: number = h(f); var z: number = h(f); //// [compositeGenericFunction.js] function f(value) { return value; } ; function h(func) { return null; } var z = h(f); var z = h(f);