File: constructSignaturesWithOverloads.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 (153 lines) | stat: -rw-r--r-- 6,631 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
=== tests/cases/conformance/types/objectTypeLiteral/constructSignatures/constructSignaturesWithOverloads.ts ===
// No errors expected for basic overloads of construct signatures

class C {
>C : Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0))

    constructor(x: number, y?: string);
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 3, 16))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 3, 26))

    constructor(x: number, y: string);
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 4, 16))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 4, 26))

    constructor(x: number) { }
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 5, 16))
}

var r1 = new C(1, '');
>r1 : Symbol(r1, Decl(constructSignaturesWithOverloads.ts, 8, 3))
>C : Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0))

class C2<T> {
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9))

    constructor(x: T, y?: string);
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 11, 16))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 11, 21))

    constructor(x: T, y: string);
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 12, 16))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 12, 21))

    constructor(x: T) { }
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 13, 16))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9))
}

var r2 = new C2(1, '');
>r2 : Symbol(r2, Decl(constructSignaturesWithOverloads.ts, 16, 3))
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))

interface I {
>I : Symbol(I, Decl(constructSignaturesWithOverloads.ts, 16, 23))

    new(x: number, y?: string): C;
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 19, 8))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 19, 18))
>C : Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0))

    new(x: number, y: string): C;
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 20, 8))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 20, 18))
>C : Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0))
}

var i: I;
>i : Symbol(i, Decl(constructSignaturesWithOverloads.ts, 23, 3))
>I : Symbol(I, Decl(constructSignaturesWithOverloads.ts, 16, 23))

var r3 = new i(1, '');
>r3 : Symbol(r3, Decl(constructSignaturesWithOverloads.ts, 24, 3))
>i : Symbol(i, Decl(constructSignaturesWithOverloads.ts, 23, 3))

interface I2<T> {
>I2 : Symbol(I2, Decl(constructSignaturesWithOverloads.ts, 24, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13))

    new (x: T, y?: string): C2<T>;
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 27, 9))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 27, 14))
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13))

    new (x: T, y: string): C2<T>;
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 28, 9))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 28, 14))
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13))

    new <T>(x: T, y?: string): C2<T>;
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 29, 9))
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 29, 12))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 29, 9))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 29, 17))
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 29, 9))

    new <T>(x: T, y: string): C2<T>;
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 30, 9))
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 30, 12))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 30, 9))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 30, 17))
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 30, 9))

}

var i2: I2<number>;
>i2 : Symbol(i2, Decl(constructSignaturesWithOverloads.ts, 34, 3))
>I2 : Symbol(I2, Decl(constructSignaturesWithOverloads.ts, 24, 22))

var r4 = new i2(1, '');
>r4 : Symbol(r4, Decl(constructSignaturesWithOverloads.ts, 35, 3))
>i2 : Symbol(i2, Decl(constructSignaturesWithOverloads.ts, 34, 3))

var a: {
>a : Symbol(a, Decl(constructSignaturesWithOverloads.ts, 37, 3))

    new(x: number, y?: string): C;
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 38, 8))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 38, 18))
>C : Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0))

    new(x: number, y: string): C;
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 39, 8))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 39, 18))
>C : Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0))
}

var r5 = new a(1, '');
>r5 : Symbol(r5, Decl(constructSignaturesWithOverloads.ts, 42, 3))
>a : Symbol(a, Decl(constructSignaturesWithOverloads.ts, 37, 3))

var b: {
>b : Symbol(b, Decl(constructSignaturesWithOverloads.ts, 44, 3))

    new<T>(x: T, y?: string): C2<T>;
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 45, 8))
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 45, 11))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 45, 8))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 45, 16))
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 45, 8))

    new<T>(x: T, y: string): C2<T>;
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 46, 8))
>x : Symbol(x, Decl(constructSignaturesWithOverloads.ts, 46, 11))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 46, 8))
>y : Symbol(y, Decl(constructSignaturesWithOverloads.ts, 46, 16))
>C2 : Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22))
>T : Symbol(T, Decl(constructSignaturesWithOverloads.ts, 46, 8))
}

var r6 = new b(1, '');
>r6 : Symbol(r6, Decl(constructSignaturesWithOverloads.ts, 49, 3))
>b : Symbol(b, Decl(constructSignaturesWithOverloads.ts, 44, 3))