TypeScript/tests/baselines/reference/compositeGenericFunction.js

15 lines
335 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [compositeGenericFunction.ts]
function f<T>(value: T) { return value; };
function h<R>(func: (x: number) => R): R { return null; }
var z: number = h<number>(f);
var z: number = h(f);
//// [compositeGenericFunction.js]
function f(value) { return value; }
2014-07-13 01:04:16 +02:00
;
function h(func) { return null; }
2014-07-13 01:04:16 +02:00
var z = h(f);
var z = h(f);