TypeScript/tests/baselines/reference/fatArrowfunctionAsType.js

12 lines
223 B
TypeScript
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; };
2014-07-13 01:04:16 +02:00
b = c;