2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNamesContextualType1_ES5.ts]
|
|
|
|
interface I {
|
|
|
|
[s: string]: (x: string) => number;
|
|
|
|
[s: number]: (x: any) => number; // Doesn't get hit
|
|
|
|
}
|
|
|
|
|
|
|
|
var o: I = {
|
|
|
|
["" + 0](y) { return y.length; },
|
|
|
|
["" + 1]: y => y.length
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNamesContextualType1_ES5.js]
|
2015-02-22 00:00:23 +01:00
|
|
|
var o = (_a = {}, _a["" + 0] = function (y) { return y.length; }, _a["" + 1] =
|
2015-02-21 06:53:44 +01:00
|
|
|
function (y) { return y.length; },
|
|
|
|
_a);
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|