TypeScript/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.js
2019-02-25 13:26:44 -08:00

15 lines
612 B
TypeScript

//// [arrowFunctionWithObjectLiteralBody5.ts]
var a = () => <Error>{ name: "foo", message: "bar" };
var b = () => (<Error>{ name: "foo", message: "bar" });
var c = () => ({ name: "foo", message: "bar" });
var d = () => ((<Error>({ name: "foo", message: "bar" })));
//// [arrowFunctionWithObjectLiteralBody5.js]
var a = function () { return ({ name: "foo", message: "bar" }); };
var b = function () { return ({ name: "foo", message: "bar" }); };
var c = function () { return ({ name: "foo", message: "bar" }); };
var d = function () { return ({ name: "foo", message: "bar" }); };