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