2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNamesContextualType4_ES5.ts]
|
|
|
|
interface I {
|
|
|
|
[s: string]: any;
|
|
|
|
[s: number]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
var o: I = {
|
|
|
|
[""+"foo"]: "",
|
|
|
|
[""+"bar"]: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNamesContextualType4_ES5.js]
|
2015-02-24 02:44:48 +01:00
|
|
|
var o = (_a = {},
|
|
|
|
_a["" + "foo"] = "",
|
|
|
|
_a["" + "bar"] = 0,
|
|
|
|
_a
|
|
|
|
);
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|