TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody6.ts
Cyrus Najmabadi bdcdd84dda CR feedback.
2015-03-07 02:08:36 -08:00

8 lines
265 B
TypeScript

// @target: es6
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" })));