TypeScript/tests/baselines/reference/genericFunctionHasFreshTypeArgs.js

9 lines
236 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [genericFunctionHasFreshTypeArgs.ts]
function f(p: <T>(x: T) => void) { };
f(x => f(y => x = y));
//// [genericFunctionHasFreshTypeArgs.js]
function f(p) { }
2014-07-13 01:04:16 +02:00
;
f(function (x) { return f(function (y) { return x = y; }); });