17 lines
318 B
JavaScript
17 lines
318 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;
|