File: callNonGenericFunctionWithTypeArguments.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (108 lines) | stat: -rw-r--r-- 4,752 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
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
=== tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts ===
// it is always illegal to provide type arguments to a non-generic function
// all invocations here are illegal

function f(x: number) { return null; }
>f : Symbol(f, Decl(callNonGenericFunctionWithTypeArguments.ts, 0, 0))
>x : Symbol(x, Decl(callNonGenericFunctionWithTypeArguments.ts, 3, 11))

var r = f<string>(1);
>r : Symbol(r, Decl(callNonGenericFunctionWithTypeArguments.ts, 4, 3))
>f : Symbol(f, Decl(callNonGenericFunctionWithTypeArguments.ts, 0, 0))

var f2 = (x: number) => { return null; }
>f2 : Symbol(f2, Decl(callNonGenericFunctionWithTypeArguments.ts, 6, 3))
>x : Symbol(x, Decl(callNonGenericFunctionWithTypeArguments.ts, 6, 10))

var r2 = f2<string>(1);
>r2 : Symbol(r2, Decl(callNonGenericFunctionWithTypeArguments.ts, 7, 3))
>f2 : Symbol(f2, Decl(callNonGenericFunctionWithTypeArguments.ts, 6, 3))

var f3: { (x: number): any; }
>f3 : Symbol(f3, Decl(callNonGenericFunctionWithTypeArguments.ts, 9, 3))
>x : Symbol(x, Decl(callNonGenericFunctionWithTypeArguments.ts, 9, 11))

var r3 = f3<string>(1);
>r3 : Symbol(r3, Decl(callNonGenericFunctionWithTypeArguments.ts, 10, 3))
>f3 : Symbol(f3, Decl(callNonGenericFunctionWithTypeArguments.ts, 9, 3))

class C {
>C : Symbol(C, Decl(callNonGenericFunctionWithTypeArguments.ts, 10, 23))

    f(x: number) {
>f : Symbol(C.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 12, 9))
>x : Symbol(x, Decl(callNonGenericFunctionWithTypeArguments.ts, 13, 6))

        return null;
    }
}
var r4 = (new C()).f<string>(1);
>r4 : Symbol(r4, Decl(callNonGenericFunctionWithTypeArguments.ts, 17, 3))
>(new C()).f : Symbol(C.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 12, 9))
>C : Symbol(C, Decl(callNonGenericFunctionWithTypeArguments.ts, 10, 23))
>f : Symbol(C.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 12, 9))

interface I {
>I : Symbol(I, Decl(callNonGenericFunctionWithTypeArguments.ts, 17, 32))

    f(x: number): any;
>f : Symbol(I.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 19, 13))
>x : Symbol(x, Decl(callNonGenericFunctionWithTypeArguments.ts, 20, 6))
}
var i: I;
>i : Symbol(i, Decl(callNonGenericFunctionWithTypeArguments.ts, 22, 3))
>I : Symbol(I, Decl(callNonGenericFunctionWithTypeArguments.ts, 17, 32))

var r5 = i.f<string>(1);
>r5 : Symbol(r5, Decl(callNonGenericFunctionWithTypeArguments.ts, 23, 3))
>i.f : Symbol(I.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 19, 13))
>i : Symbol(i, Decl(callNonGenericFunctionWithTypeArguments.ts, 22, 3))
>f : Symbol(I.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 19, 13))

class C2 {
>C2 : Symbol(C2, Decl(callNonGenericFunctionWithTypeArguments.ts, 23, 24))

    f(x: number) {
>f : Symbol(C2.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 25, 10))
>x : Symbol(x, Decl(callNonGenericFunctionWithTypeArguments.ts, 26, 6))

        return null;
    }
}
var r6 = (new C2()).f<string>(1);
>r6 : Symbol(r6, Decl(callNonGenericFunctionWithTypeArguments.ts, 30, 3))
>(new C2()).f : Symbol(C2.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 25, 10))
>C2 : Symbol(C2, Decl(callNonGenericFunctionWithTypeArguments.ts, 23, 24))
>f : Symbol(C2.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 25, 10))

interface I2 {
>I2 : Symbol(I2, Decl(callNonGenericFunctionWithTypeArguments.ts, 30, 33))

    f(x: number);
>f : Symbol(I2.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 32, 14))
>x : Symbol(x, Decl(callNonGenericFunctionWithTypeArguments.ts, 33, 6))
}
var i2: I2;
>i2 : Symbol(i2, Decl(callNonGenericFunctionWithTypeArguments.ts, 35, 3))
>I2 : Symbol(I2, Decl(callNonGenericFunctionWithTypeArguments.ts, 30, 33))

var r7 = i2.f<string>(1);
>r7 : Symbol(r7, Decl(callNonGenericFunctionWithTypeArguments.ts, 36, 3))
>i2.f : Symbol(I2.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 32, 14))
>i2 : Symbol(i2, Decl(callNonGenericFunctionWithTypeArguments.ts, 35, 3))
>f : Symbol(I2.f, Decl(callNonGenericFunctionWithTypeArguments.ts, 32, 14))

var a;
>a : Symbol(a, Decl(callNonGenericFunctionWithTypeArguments.ts, 38, 3))

var r8 = a<number>();
>r8 : Symbol(r8, Decl(callNonGenericFunctionWithTypeArguments.ts, 39, 3), Decl(callNonGenericFunctionWithTypeArguments.ts, 42, 3))
>a : Symbol(a, Decl(callNonGenericFunctionWithTypeArguments.ts, 38, 3))

var a2: any;
>a2 : Symbol(a2, Decl(callNonGenericFunctionWithTypeArguments.ts, 41, 3))

var r8 = a2<number>();
>r8 : Symbol(r8, Decl(callNonGenericFunctionWithTypeArguments.ts, 39, 3), Decl(callNonGenericFunctionWithTypeArguments.ts, 42, 3))
>a2 : Symbol(a2, Decl(callNonGenericFunctionWithTypeArguments.ts, 41, 3))