TypeScript/tests/baselines/reference/arrowFunctionWithObjectLiteralBody6.js

15 lines
542 B
TypeScript
Raw Normal View History

2015-03-07 11:08:36 +01:00
//// [arrowFunctionWithObjectLiteralBody6.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" })));
//// [arrowFunctionWithObjectLiteralBody6.js]
var a = () => ({ name: "foo", message: "bar" });
var b = () => ({ name: "foo", message: "bar" });
var c = () => ({ name: "foo", message: "bar" });
var d = () => (({ name: "foo", message: "bar" }));