TypeScript/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js

18 lines
286 B
JavaScript

//// [computedPropertyNamesContextualType5_ES5.ts]
interface I {
[s: string]: any;
[s: number]: any;
}
var o: I = {
[+"foo"]: "",
[+"bar"]: 0
}
//// [computedPropertyNamesContextualType5_ES5.js]
var o = (_a = {}, _a[+"foo"] =
"", _a[+"bar"] =
0,
_a);
var _a;