2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNamesContextualType10_ES5.ts]
|
|
|
|
interface I {
|
|
|
|
[s: number]: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
var o: I = {
|
|
|
|
[+"foo"]: "",
|
|
|
|
[+"bar"]: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNamesContextualType10_ES5.js]
|
2015-02-20 23:16:09 +01:00
|
|
|
var o = (_a = {}, _a[+"foo"] = "", _a[+"bar"] = 0, _a);
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|