=== tests/cases/compiler/arrowFunctionWithObjectLiteralBody6.ts === var a = () => { name: "foo", message: "bar" }; >a : () => Error, Symbol(a, Decl(arrowFunctionWithObjectLiteralBody6.ts, 0, 3)) >() => { name: "foo", message: "bar" } : () => Error >{ name: "foo", message: "bar" } : Error >Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >{ name: "foo", message: "bar" } : { name: string; message: string; } >name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 0, 22)) >"foo" : string >message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 0, 35)) >"bar" : string var b = () => ({ name: "foo", message: "bar" }); >b : () => Error, Symbol(b, Decl(arrowFunctionWithObjectLiteralBody6.ts, 2, 3)) >() => ({ name: "foo", message: "bar" }) : () => Error >({ name: "foo", message: "bar" }) : Error >{ name: "foo", message: "bar" } : Error >Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >{ name: "foo", message: "bar" } : { name: string; message: string; } >name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 2, 23)) >"foo" : string >message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 2, 36)) >"bar" : string var c = () => ({ name: "foo", message: "bar" }); >c : () => { name: string; message: string; }, Symbol(c, Decl(arrowFunctionWithObjectLiteralBody6.ts, 4, 3)) >() => ({ name: "foo", message: "bar" }) : () => { name: string; message: string; } >({ name: "foo", message: "bar" }) : { name: string; message: string; } >{ name: "foo", message: "bar" } : { name: string; message: string; } >name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 4, 16)) >"foo" : string >message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 4, 29)) >"bar" : string var d = () => ((({ name: "foo", message: "bar" }))); >d : () => Error, Symbol(d, Decl(arrowFunctionWithObjectLiteralBody6.ts, 6, 3)) >() => ((({ name: "foo", message: "bar" }))) : () => Error >((({ name: "foo", message: "bar" }))) : Error >(({ name: "foo", message: "bar" })) : Error >({ name: "foo", message: "bar" }) : Error >Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >({ name: "foo", message: "bar" }) : { name: string; message: string; } >{ name: "foo", message: "bar" } : { name: string; message: string; } >name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 6, 25)) >"foo" : string >message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 6, 38)) >"bar" : string