29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES6.ts ===
|
|
interface I<T> {
|
|
>I : Symbol(I, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 0))
|
|
>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 12))
|
|
|
|
[s: number]: T;
|
|
>s : Symbol(s, Decl(computedPropertyNamesContextualType7_ES6.ts, 1, 5))
|
|
>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 12))
|
|
}
|
|
|
|
declare function foo<T>(obj: I<T>): T
|
|
>foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES6.ts, 2, 1))
|
|
>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21))
|
|
>obj : Symbol(obj, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 24))
|
|
>I : Symbol(I, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 0))
|
|
>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21))
|
|
>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21))
|
|
|
|
foo({
|
|
>foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES6.ts, 2, 1))
|
|
|
|
p: "",
|
|
>p : Symbol(p, Decl(computedPropertyNamesContextualType7_ES6.ts, 6, 5))
|
|
|
|
0: () => { },
|
|
["hi" + "bye"]: true,
|
|
[0 + 1]: 0,
|
|
[+"hi"]: [0]
|
|
});
|