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