17 lines
276 B
JavaScript
17 lines
276 B
JavaScript
|
//// [computedPropertyNamesContextualType9_ES5.ts]
|
||
|
interface I {
|
||
|
[s: string]: boolean;
|
||
|
[s: number]: boolean;
|
||
|
}
|
||
|
|
||
|
var o: I = {
|
||
|
[+"foo"]: "",
|
||
|
[+"bar"]: 0
|
||
|
}
|
||
|
|
||
|
//// [computedPropertyNamesContextualType9_ES5.js]
|
||
|
var o = {
|
||
|
[+"foo"]: "",
|
||
|
[+"bar"]: 0
|
||
|
};
|