19 lines
312 B
TypeScript
19 lines
312 B
TypeScript
//// [computedPropertyNamesContextualType4_ES5.ts]
|
|
interface I {
|
|
[s: string]: any;
|
|
[s: number]: any;
|
|
}
|
|
|
|
var o: I = {
|
|
[""+"foo"]: "",
|
|
[""+"bar"]: 0
|
|
}
|
|
|
|
//// [computedPropertyNamesContextualType4_ES5.js]
|
|
var o = (_a = {},
|
|
_a["" + "foo"] = "",
|
|
_a["" + "bar"] = 0,
|
|
_a
|
|
);
|
|
var _a;
|