File: computedPropertyNamesContextualType6_ES5.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download | duplicates (2)
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
=== 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: () => { },
    ["hi" + "bye"]: true,
    [0 + 1]: 0,
    [+"hi"]: [0]
});