@@ -3,26 +3,45 @@ interface I<T> {
33>I : Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0))
44>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12))
55
6- [s : number]: T;
7- >s : Symbol(s , Decl(computedPropertyNamesContextualType7_ES5.ts, 1, 5))
6+ [n : number]: T;
7+ >n : Symbol(n , Decl(computedPropertyNamesContextualType7_ES5.ts, 1, 5))
88>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12))
99}
10+ interface J<T> {
11+ >J : Symbol(J, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1))
12+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 3, 12))
1013
11- declare function foo<T>(obj: I<T>): T
12- >foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1))
13- >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21))
14- >obj : Symbol(obj, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 24))
14+ [s: string]: T;
15+ >s : Symbol(s, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 5))
16+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 3, 12))
17+ }
18+
19+ declare function foo<T>(obj: I<T>): T;
20+ >foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 5, 1))
21+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 21))
22+ >obj : Symbol(obj, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 24))
1523>I : Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0))
16- >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21))
17- >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21))
24+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 21))
25+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 21))
26+
27+ declare function g<T>(obj: J<T>): T;
28+ >g : Symbol(g, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 38))
29+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 19))
30+ >obj : Symbol(obj, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 22))
31+ >J : Symbol(J, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1))
32+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 19))
33+ >T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 19))
1834
1935foo({
20- >foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 2 , 1))
36+ >foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 5 , 1))
2137
22- 101: "",
2338 0: () => { },
2439 ["hi" + "bye"]: true,
2540 [0 + 1]: 0,
2641 [+"hi"]: [0]
2742});
2843
44+ g({ p: "" });
45+ >g : Symbol(g, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 38))
46+ >p : Symbol(p, Decl(computedPropertyNamesContextualType7_ES5.ts, 17, 3))
47+
0 commit comments