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