1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts ===
interface I {
>I : Symbol(I, Decl(computedPropertyNamesContextualType1_ES5.ts, 0, 0))
[s: string]: (x: string) => number;
>s : Symbol(s, Decl(computedPropertyNamesContextualType1_ES5.ts, 1, 5))
>x : Symbol(x, Decl(computedPropertyNamesContextualType1_ES5.ts, 1, 18))
[s: number]: (x: any) => number; // Doesn't get hit
>s : Symbol(s, Decl(computedPropertyNamesContextualType1_ES5.ts, 2, 5))
>x : Symbol(x, Decl(computedPropertyNamesContextualType1_ES5.ts, 2, 18))
}
var o: I = {
>o : Symbol(o, Decl(computedPropertyNamesContextualType1_ES5.ts, 5, 3))
>I : Symbol(I, Decl(computedPropertyNamesContextualType1_ES5.ts, 0, 0))
["" + 0](y) { return y.length; },
>["" + 0] : Symbol(["" + 0], Decl(computedPropertyNamesContextualType1_ES5.ts, 5, 12))
>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 13))
>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 13))
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
["" + 1]: y => y.length
>["" + 1] : Symbol(["" + 1], Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 37))
>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 7, 13))
>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 7, 13))
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
}
|