TypeScript/tests/baselines/reference/fatArrowfunctionAsType.js

14 lines
229 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [fatArrowfunctionAsType.ts]
declare var b: <T>(x: T) => void ;
var c: <T>(x: T) => void = function <T>(x: T) { return 42; }
b = c;
//// [fatArrowfunctionAsType.js]
var c = function (x) {
return 42;
};
b = c;