TypeScript/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.js
2014-07-12 17:30:19 -07:00

14 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 () {
};