2014-11-11 20:31:45 +01:00
|
|
|
//// [objectLiteralShorthandProperties.ts]
|
|
|
|
var a, b, c;
|
|
|
|
|
|
|
|
var x1 = {
|
|
|
|
a
|
|
|
|
};
|
|
|
|
|
|
|
|
var x2 = {
|
|
|
|
a,
|
|
|
|
}
|
|
|
|
|
|
|
|
var x3 = {
|
|
|
|
a: 0,
|
|
|
|
b,
|
|
|
|
c,
|
|
|
|
d() { },
|
|
|
|
x3,
|
|
|
|
parent: x3
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [objectLiteralShorthandProperties.js]
|
|
|
|
var a, b, c;
|
|
|
|
var x1 = {
|
|
|
|
a: a
|
|
|
|
};
|
|
|
|
var x2 = {
|
2014-11-13 21:02:13 +01:00
|
|
|
a: a,
|
2014-11-11 20:31:45 +01:00
|
|
|
};
|
|
|
|
var x3 = {
|
|
|
|
a: 0,
|
|
|
|
b: b,
|
|
|
|
c: c,
|
|
|
|
d: function () {
|
|
|
|
},
|
|
|
|
x3: x3,
|
|
|
|
parent: x3
|
|
|
|
};
|