14 lines
303 B
JavaScript
14 lines
303 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;
|