TypeScript/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.js
2015-02-06 18:45:09 -08:00

12 lines
320 B
JavaScript

//// [functionWithAnyReturnTypeAndNoReturnExpression.ts]
// All should be allowed
function f(): any { }
var f2: () => any = () => { };
var f3 = (): any => { };
//// [functionWithAnyReturnTypeAndNoReturnExpression.js]
// All should be allowed
function f() { }
var f2 = function () { };
var f3 = function () { };