File: computedPropertyNamesContextualType6_ES5.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (37 lines) | stat: -rw-r--r-- 1,545 bytes parent folder | download | duplicates (5)
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
32
33
34
35
36
37
=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts ===
interface I<T> {
>I : Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0))
>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12))

    [s: string]: T;
>s : Symbol(s, Decl(computedPropertyNamesContextualType6_ES5.ts, 1, 5))
>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12))
}

declare function foo<T>(obj: I<T>): T
>foo : Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1))
>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21))
>obj : Symbol(obj, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 24))
>I : Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0))
>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21))
>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21))

foo({
>foo : Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1))

    p: "",
>p : Symbol(p, Decl(computedPropertyNamesContextualType6_ES5.ts, 6, 5))

    0: () => { },
>0 : Symbol(0, Decl(computedPropertyNamesContextualType6_ES5.ts, 7, 10))

    ["hi" + "bye"]: true,
>["hi" + "bye"] : Symbol(["hi" + "bye"], Decl(computedPropertyNamesContextualType6_ES5.ts, 8, 17))

    [0 + 1]: 0,
>[0 + 1] : Symbol([0 + 1], Decl(computedPropertyNamesContextualType6_ES5.ts, 9, 25))

    [+"hi"]: [0]
>[+"hi"] : Symbol([+"hi"], Decl(computedPropertyNamesContextualType6_ES5.ts, 10, 15))

});