File: callGenericFunctionWithZeroTypeArguments.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 (114 lines) | stat: -rw-r--r-- 5,634 bytes parent folder | download | duplicates (7)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
=== tests/cases/conformance/types/typeParameters/typeArgumentLists/callGenericFunctionWithZeroTypeArguments.ts ===
// valid invocations of generic functions with no explicit type arguments provided 

function f<T>(x: T): T { return null; }
>f : Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 0, 0))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 11))
>x : Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 14))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 11))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 11))

var r = f(1);
>r : Symbol(r, Decl(callGenericFunctionWithZeroTypeArguments.ts, 3, 3))
>f : Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 0, 0))

var f2 = <T>(x: T): T => { return null; }
>f2 : Symbol(f2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 3))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 10))
>x : Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 13))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 10))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 10))

var r2 = f2(1);
>r2 : Symbol(r2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 6, 3))
>f2 : Symbol(f2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 3))

var f3: { <T>(x: T): T; }
>f3 : Symbol(f3, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 3))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 11))
>x : Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 14))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 11))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 11))

var r3 = f3(1);
>r3 : Symbol(r3, Decl(callGenericFunctionWithZeroTypeArguments.ts, 9, 3))
>f3 : Symbol(f3, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 3))

class C {
>C : Symbol(C, Decl(callGenericFunctionWithZeroTypeArguments.ts, 9, 15))

    f<T>(x: T): T {
>f : Symbol(C.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 11, 9))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 6))
>x : Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 9))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 6))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 6))

        return null;
    }
}
var r4 = (new C()).f(1);
>r4 : Symbol(r4, Decl(callGenericFunctionWithZeroTypeArguments.ts, 16, 3))
>(new C()).f : Symbol(C.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 11, 9))
>C : Symbol(C, Decl(callGenericFunctionWithZeroTypeArguments.ts, 9, 15))
>f : Symbol(C.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 11, 9))

interface I {
>I : Symbol(I, Decl(callGenericFunctionWithZeroTypeArguments.ts, 16, 24))

    f<T>(x: T): T;
>f : Symbol(I.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 18, 13))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 6))
>x : Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 9))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 6))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 6))
}
var i: I;
>i : Symbol(i, Decl(callGenericFunctionWithZeroTypeArguments.ts, 21, 3))
>I : Symbol(I, Decl(callGenericFunctionWithZeroTypeArguments.ts, 16, 24))

var r5 = i.f(1);
>r5 : Symbol(r5, Decl(callGenericFunctionWithZeroTypeArguments.ts, 22, 3))
>i.f : Symbol(I.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 18, 13))
>i : Symbol(i, Decl(callGenericFunctionWithZeroTypeArguments.ts, 21, 3))
>f : Symbol(I.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 18, 13))

class C2<T> {
>C2 : Symbol(C2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 22, 16))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 9))

    f(x: T): T {
>f : Symbol(C2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 13))
>x : Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 25, 6))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 9))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 9))

        return null;
    }
}
var r6 = (new C2()).f(1);
>r6 : Symbol(r6, Decl(callGenericFunctionWithZeroTypeArguments.ts, 29, 3))
>(new C2()).f : Symbol(C2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 13))
>C2 : Symbol(C2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 22, 16))
>f : Symbol(C2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 13))

interface I2<T> {
>I2 : Symbol(I2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 29, 25))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 13))

    f(x: T): T;
>f : Symbol(I2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 17))
>x : Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 32, 6))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 13))
>T : Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 13))
}
var i2: I2<number>;
>i2 : Symbol(i2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 34, 3))
>I2 : Symbol(I2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 29, 25))

var r7 = i2.f(1);
>r7 : Symbol(r7, Decl(callGenericFunctionWithZeroTypeArguments.ts, 35, 3))
>i2.f : Symbol(I2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 17))
>i2 : Symbol(i2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 34, 3))
>f : Symbol(I2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 17))