12 lines
320 B
JavaScript
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 () { };
|