2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNamesContextualType8_ES6.ts]
|
2015-01-15 02:09:33 +01:00
|
|
|
interface I {
|
|
|
|
[s: string]: boolean;
|
|
|
|
[s: number]: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
var o: I = {
|
|
|
|
[""+"foo"]: "",
|
|
|
|
[""+"bar"]: 0
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNamesContextualType8_ES6.js]
|
2015-01-15 02:09:33 +01:00
|
|
|
var o = {
|
|
|
|
["" + "foo"]: "",
|
|
|
|
["" + "bar"]: 0
|
|
|
|
};
|