File: staticPropertyNameConflicts.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 (362 lines) | stat: -rw-r--r-- 13,613 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
=== tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts ===
// name
class StaticName {
>StaticName : Symbol(StaticName, Decl(staticPropertyNameConflicts.ts, 0, 0))

    static name: number; // error
>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 1, 18))

    name: string; // ok
>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 2, 24))
}

class StaticNameFn {
>StaticNameFn : Symbol(StaticNameFn, Decl(staticPropertyNameConflicts.ts, 4, 1))

    static name() {} // error
>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 6, 20))

    name() {} // ok
>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 7, 20))
}

// length
class StaticLength {
>StaticLength : Symbol(StaticLength, Decl(staticPropertyNameConflicts.ts, 9, 1))

    static length: number; // error
>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 12, 20))

    length: string; // ok
>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 13, 26))
}

class StaticLengthFn {
>StaticLengthFn : Symbol(StaticLengthFn, Decl(staticPropertyNameConflicts.ts, 15, 1))

    static length() {} // error
>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 17, 22))

    length() {} // ok
>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 18, 22))
}

// prototype
class StaticPrototype {
>StaticPrototype : Symbol(StaticPrototype, Decl(staticPropertyNameConflicts.ts, 20, 1))

    static prototype: number; // error
>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 23, 23))

    prototype: string; // ok
>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 24, 29))
}

class StaticPrototypeFn {
>StaticPrototypeFn : Symbol(StaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 26, 1))

    static prototype() {} // error
>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 28, 25))

    prototype() {} // ok
>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 29, 25))
}

// caller
class StaticCaller {
>StaticCaller : Symbol(StaticCaller, Decl(staticPropertyNameConflicts.ts, 31, 1))

    static caller: number; // error
>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 34, 20))

    caller: string; // ok
>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 35, 26))
}

class StaticCallerFn {
>StaticCallerFn : Symbol(StaticCallerFn, Decl(staticPropertyNameConflicts.ts, 37, 1))

    static caller() {} // error
>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 39, 22))

    caller() {} // ok
>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 40, 22))
}

// arguments
class StaticArguments {
>StaticArguments : Symbol(StaticArguments, Decl(staticPropertyNameConflicts.ts, 42, 1))

    static arguments: number; // error
>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 45, 23))

    arguments: string; // ok
>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 46, 29))
}

class StaticArgumentsFn {
>StaticArgumentsFn : Symbol(StaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 48, 1))

    static arguments() {} // error
>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 50, 25))

    arguments() {} // ok
>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 51, 25))
}



// === Static properties on anonymous classes ===

// name
var StaticName_Anonymous = class {
>StaticName_Anonymous : Symbol(StaticName_Anonymous, Decl(staticPropertyNameConflicts.ts, 60, 3))

    static name: number; // error
>name : Symbol(StaticName_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 60, 34))

    name: string; // ok
>name : Symbol(StaticName_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 61, 24))
}

var StaticNameFn_Anonymous = class {
>StaticNameFn_Anonymous : Symbol(StaticNameFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 65, 3))

    static name() {} // error
>name : Symbol(StaticNameFn_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 65, 36))

    name() {} // ok
>name : Symbol(StaticNameFn_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 66, 20))
}

// length
var StaticLength_Anonymous = class {
>StaticLength_Anonymous : Symbol(StaticLength_Anonymous, Decl(staticPropertyNameConflicts.ts, 71, 3))

    static length: number; // error
>length : Symbol(StaticLength_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 71, 36))

    length: string; // ok
>length : Symbol(StaticLength_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 72, 26))
}

var StaticLengthFn_Anonymous = class {
>StaticLengthFn_Anonymous : Symbol(StaticLengthFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 76, 3))

    static length() {} // error
>length : Symbol(StaticLengthFn_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 76, 38))

    length() {} // ok
>length : Symbol(StaticLengthFn_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 77, 22))
}

// prototype
var StaticPrototype_Anonymous = class {
>StaticPrototype_Anonymous : Symbol(StaticPrototype_Anonymous, Decl(staticPropertyNameConflicts.ts, 82, 3))

    static prototype: number; // error
>prototype : Symbol(StaticPrototype_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 82, 39))

    prototype: string; // ok
>prototype : Symbol(StaticPrototype_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 83, 29))
}

var StaticPrototypeFn_Anonymous = class {
>StaticPrototypeFn_Anonymous : Symbol(StaticPrototypeFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 87, 3))

    static prototype() {} // error
>prototype : Symbol(StaticPrototypeFn_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 87, 41))

    prototype() {} // ok
>prototype : Symbol(StaticPrototypeFn_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 88, 25))
}

// caller
var StaticCaller_Anonymous = class {
>StaticCaller_Anonymous : Symbol(StaticCaller_Anonymous, Decl(staticPropertyNameConflicts.ts, 93, 3))

    static caller: number; // error
>caller : Symbol(StaticCaller_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 93, 36))

    caller: string; // ok
>caller : Symbol(StaticCaller_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 94, 26))
}

var StaticCallerFn_Anonymous = class {
>StaticCallerFn_Anonymous : Symbol(StaticCallerFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 98, 3))

    static caller() {} // error
>caller : Symbol(StaticCallerFn_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 98, 38))

    caller() {} // ok
>caller : Symbol(StaticCallerFn_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 99, 22))
}

// arguments
var StaticArguments_Anonymous = class {
>StaticArguments_Anonymous : Symbol(StaticArguments_Anonymous, Decl(staticPropertyNameConflicts.ts, 104, 3))

    static arguments: number; // error
>arguments : Symbol(StaticArguments_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 104, 39))

    arguments: string; // ok
>arguments : Symbol(StaticArguments_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 105, 29))
}

var StaticArgumentsFn_Anonymous = class {
>StaticArgumentsFn_Anonymous : Symbol(StaticArgumentsFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 109, 3))

    static arguments() {} // error
>arguments : Symbol(StaticArgumentsFn_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 109, 41))

    arguments() {} // ok
>arguments : Symbol(StaticArgumentsFn_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 110, 25))
}


// === Static properties on default exported classes ===

// name
module TestOnDefaultExportedClass_1 {
>TestOnDefaultExportedClass_1 : Symbol(TestOnDefaultExportedClass_1, Decl(staticPropertyNameConflicts.ts, 112, 1))

    class StaticName {
>StaticName : Symbol(StaticName, Decl(staticPropertyNameConflicts.ts, 118, 37))

        static name: number; // error
>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 119, 22))

        name: string; // ok
>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 120, 28))
    }
}

module TestOnDefaultExportedClass_2 {
>TestOnDefaultExportedClass_2 : Symbol(TestOnDefaultExportedClass_2, Decl(staticPropertyNameConflicts.ts, 123, 1))

    class StaticNameFn {
>StaticNameFn : Symbol(StaticNameFn, Decl(staticPropertyNameConflicts.ts, 125, 37))

        static name() {} // error
>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 126, 24))

        name() {} // ok
>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 127, 24))
    }
}

// length
module TestOnDefaultExportedClass_3 {
>TestOnDefaultExportedClass_3 : Symbol(TestOnDefaultExportedClass_3, Decl(staticPropertyNameConflicts.ts, 130, 1))

    export default class StaticLength {
>StaticLength : Symbol(StaticLength, Decl(staticPropertyNameConflicts.ts, 133, 37))

        static length: number; // error
>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 134, 39))

        length: string; // ok
>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 135, 30))
    }
}

module TestOnDefaultExportedClass_4 {
>TestOnDefaultExportedClass_4 : Symbol(TestOnDefaultExportedClass_4, Decl(staticPropertyNameConflicts.ts, 138, 1))

    export default class StaticLengthFn {
>StaticLengthFn : Symbol(StaticLengthFn, Decl(staticPropertyNameConflicts.ts, 140, 37))

        static length() {} // error
>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 141, 41))

        length() {} // ok
>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 142, 26))
    }
}

// prototype
module TestOnDefaultExportedClass_5 {    
>TestOnDefaultExportedClass_5 : Symbol(TestOnDefaultExportedClass_5, Decl(staticPropertyNameConflicts.ts, 145, 1))

    export default class StaticPrototype {
>StaticPrototype : Symbol(StaticPrototype, Decl(staticPropertyNameConflicts.ts, 148, 37))

        static prototype: number; // error
>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 149, 42))

        prototype: string; // ok
>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 150, 33))
    }
}

module TestOnDefaultExportedClass_6 {
>TestOnDefaultExportedClass_6 : Symbol(TestOnDefaultExportedClass_6, Decl(staticPropertyNameConflicts.ts, 153, 1))

    export default class StaticPrototypeFn {
>StaticPrototypeFn : Symbol(StaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 155, 37))

        static prototype() {} // error
>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 156, 44))

        prototype() {} // ok
>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 157, 29))
    }
}

// caller
module TestOnDefaultExportedClass_7 {
>TestOnDefaultExportedClass_7 : Symbol(TestOnDefaultExportedClass_7, Decl(staticPropertyNameConflicts.ts, 160, 1))

    export default class StaticCaller {
>StaticCaller : Symbol(StaticCaller, Decl(staticPropertyNameConflicts.ts, 163, 37))

        static caller: number; // error
>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 164, 39))

        caller: string; // ok
>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 165, 30))
    }
}

module TestOnDefaultExportedClass_8 {
>TestOnDefaultExportedClass_8 : Symbol(TestOnDefaultExportedClass_8, Decl(staticPropertyNameConflicts.ts, 168, 1))

    export default class StaticCallerFn {
>StaticCallerFn : Symbol(StaticCallerFn, Decl(staticPropertyNameConflicts.ts, 170, 37))

        static caller() {} // error
>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 171, 41))

        caller() {} // ok
>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 172, 26))
    }
}

// arguments
module TestOnDefaultExportedClass_9 {
>TestOnDefaultExportedClass_9 : Symbol(TestOnDefaultExportedClass_9, Decl(staticPropertyNameConflicts.ts, 175, 1))

    export default class StaticArguments {
>StaticArguments : Symbol(StaticArguments, Decl(staticPropertyNameConflicts.ts, 178, 37))

        static arguments: number; // error
>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 179, 42))

        arguments: string; // ok
>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 180, 33))
    }
}

module TestOnDefaultExportedClass_10 {
>TestOnDefaultExportedClass_10 : Symbol(TestOnDefaultExportedClass_10, Decl(staticPropertyNameConflicts.ts, 183, 1))

    export default class StaticArgumentsFn {
>StaticArgumentsFn : Symbol(StaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 185, 38))

        static arguments() {} // error
>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 186, 44))

        arguments() {} // ok
>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 187, 29))
    }
}