18 lines
306 B
JavaScript
18 lines
306 B
JavaScript
//// [computedPropertyNamesContextualType8_ES5.ts]
|
|
interface I {
|
|
[s: string]: boolean;
|
|
[s: number]: boolean;
|
|
}
|
|
|
|
var o: I = {
|
|
[""+"foo"]: "",
|
|
[""+"bar"]: 0
|
|
}
|
|
|
|
//// [computedPropertyNamesContextualType8_ES5.js]
|
|
var o = (_a = {}, _a["" + "foo"] =
|
|
"", _a["" + "bar"] =
|
|
0,
|
|
_a);
|
|
var _a;
|