TypeScript/tests/baselines/reference/typeInferenceFixEarly.js

8 lines
155 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [typeInferenceFixEarly.ts]
declare function f<T>(p: (t: T) => T): T;
f(n => 3);
//// [typeInferenceFixEarly.js]
f(function (n) { return 3; });