Closed
Description
Started here: https://typescript.codeplex.com/workitem/1367
Please consider adding support for object literal property value shorthand, as per the ES6 proposal: http://wiki.ecmascript.org/doku.php?id=harmony:object_literals#object_literal_property_value_shorthand. This would allow for the following:
function foo(a: number) {
var b = 123;
return { a, b }; // instead of { a: a, b: b };
}