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]
|
2014-08-14 15:21:30 +02:00
|
|
|
// All should be allowed
|
2015-02-07 03:45:09 +01:00
|
|
|
function f() { }
|
|
|
|
var f2 = function () { };
|
|
|
|
var f3 = function () { };
|