TypeScript/tests/baselines/reference/fatArrowfunctionAsType.js
2014-07-12 17:30:19 -07:00

14 lines
229 B
JavaScript

//// [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;