TypeScript/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.js

12 lines
320 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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 () { };