2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNames6_ES5.ts]
|
|
|
|
var p1: number | string;
|
|
|
|
var p2: number | number[];
|
|
|
|
var p3: string | boolean;
|
|
|
|
var v = {
|
|
|
|
[p1]: 0,
|
|
|
|
[p2]: 1,
|
|
|
|
[p3]: 2
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNames6_ES5.js]
|
|
|
|
var p1;
|
|
|
|
var p2;
|
|
|
|
var p3;
|
2015-02-21 06:53:44 +01:00
|
|
|
var v = (_a = {}, _a[p1] =
|
|
|
|
0, _a[p2] =
|
|
|
|
1, _a[p3] =
|
|
|
|
2,
|
|
|
|
_a);
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|