-
Notifications
You must be signed in to change notification settings - Fork 12.6k
/
privateNameDuplicateField.js
956 lines (887 loc) · 29.3 KB
/
privateNameDuplicateField.js
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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
//// [tests/cases/conformance/classes/members/privateNames/privateNameDuplicateField.ts] ////
//// [privateNameDuplicateField.ts]
function Field() {
// Error
class A_Field_Field {
#foo = "foo";
#foo = "foo";
}
// Error
class A_Field_Method {
#foo = "foo";
#foo() { }
}
// Error
class A_Field_Getter {
#foo = "foo";
get #foo() { return ""}
}
// Error
class A_Field_Setter {
#foo = "foo";
set #foo(value: string) { }
}
// Error
class A_Field_StaticField {
#foo = "foo";
static #foo = "foo";
}
// Error
class A_Field_StaticMethod {
#foo = "foo";
static #foo() { }
}
// Error
class A_Field_StaticGetter {
#foo = "foo";
static get #foo() { return ""}
}
// Error
class A_Field_StaticSetter {
#foo = "foo";
static set #foo(value: string) { }
}
}
function Method() {
// Error
class A_Method_Field {
#foo() { }
#foo = "foo";
}
// Error
class A_Method_Method {
#foo() { }
#foo() { }
}
// Error
class A_Method_Getter {
#foo() { }
get #foo() { return ""}
}
// Error
class A_Method_Setter {
#foo() { }
set #foo(value: string) { }
}
// Error
class A_Method_StaticField {
#foo() { }
static #foo = "foo";
}
// Error
class A_Method_StaticMethod {
#foo() { }
static #foo() { }
}
// Error
class A_Method_StaticGetter {
#foo() { }
static get #foo() { return ""}
}
// Error
class A_Method_StaticSetter {
#foo() { }
static set #foo(value: string) { }
}
}
function Getter() {
// Error
class A_Getter_Field {
get #foo() { return ""}
#foo = "foo";
}
// Error
class A_Getter_Method {
get #foo() { return ""}
#foo() { }
}
// Error
class A_Getter_Getter {
get #foo() { return ""}
get #foo() { return ""}
}
//OK
class A_Getter_Setter {
get #foo() { return ""}
set #foo(value: string) { }
}
// Error
class A_Getter_StaticField {
get #foo() { return ""}
static #foo() { }
}
// Error
class A_Getter_StaticMethod {
get #foo() { return ""}
static #foo() { }
}
// Error
class A_Getter_StaticGetter {
get #foo() { return ""}
static get #foo() { return ""}
}
// Error
class A_Getter_StaticSetter {
get #foo() { return ""}
static set #foo(value: string) { }
}
}
function Setter() {
// Error
class A_Setter_Field {
set #foo(value: string) { }
#foo = "foo";
}
// Error
class A_Setter_Method {
set #foo(value: string) { }
#foo() { }
}
// OK
class A_Setter_Getter {
set #foo(value: string) { }
get #foo() { return ""}
}
// Error
class A_Setter_Setter {
set #foo(value: string) { }
set #foo(value: string) { }
}
// Error
class A_Setter_StaticField {
set #foo(value: string) { }
static #foo = "foo";
}
// Error
class A_Setter_StaticMethod {
set #foo(value: string) { }
static #foo() { }
}
// Error
class A_Setter_StaticGetter {
set #foo(value: string) { }
static get #foo() { return ""}
}
// Error
class A_Setter_StaticSetter {
set #foo(value: string) { }
static set #foo(value: string) { }
}
}
function StaticField() {
// Error
class A_StaticField_Field {
static #foo = "foo";
#foo = "foo";
}
// Error
class A_StaticField_Method {
static #foo = "foo";
#foo() { }
}
// Error
class A_StaticField_Getter {
static #foo = "foo";
get #foo() { return ""}
}
// Error
class A_StaticField_Setter {
static #foo = "foo";
set #foo(value: string) { }
}
// Error
class A_StaticField_StaticField {
static #foo = "foo";
static #foo = "foo";
}
// Error
class A_StaticField_StaticMethod {
static #foo = "foo";
static #foo() { }
}
// Error
class A_StaticField_StaticGetter {
static #foo = "foo";
static get #foo() { return ""}
}
// Error
class A_StaticField_StaticSetter {
static #foo = "foo";
static set #foo(value: string) { }
}
}
function StaticMethod() {
// Error
class A_StaticMethod_Field {
static #foo() { }
#foo = "foo";
}
// Error
class A_StaticMethod_Method {
static #foo() { }
#foo() { }
}
// Error
class A_StaticMethod_Getter {
static #foo() { }
get #foo() { return ""}
}
// Error
class A_StaticMethod_Setter {
static #foo() { }
set #foo(value: string) { }
}
// Error
class A_StaticMethod_StaticField {
static #foo() { }
static #foo = "foo";
}
// Error
class A_StaticMethod_StaticMethod {
static #foo() { }
static #foo() { }
}
// Error
class A_StaticMethod_StaticGetter {
static #foo() { }
static get #foo() { return ""}
}
// Error
class A_StaticMethod_StaticSetter {
static #foo() { }
static set #foo(value: string) { }
}
}
function StaticGetter() {
// Error
class A_StaticGetter_Field {
static get #foo() { return ""}
#foo = "foo";
}
// Error
class A_StaticGetter_Method {
static get #foo() { return ""}
#foo() { }
}
// Error
class A_StaticGetter_Getter {
static get #foo() { return ""}
get #foo() { return ""}
}
// Error
class A_StaticGetter_Setter {
static get #foo() { return ""}
set #foo(value: string) { }
}
// Error
class A_StaticGetter_StaticField {
static get #foo() { return ""}
static #foo() { }
}
// Error
class A_StaticGetter_StaticMethod {
static get #foo() { return ""}
static #foo() { }
}
// Error
class A_StaticGetter_StaticGetter {
static get #foo() { return ""}
static get #foo() { return ""}
}
// OK
class A_StaticGetter_StaticSetter {
static get #foo() { return ""}
static set #foo(value: string) { }
}
}
function StaticSetter() {
// Error
class A_StaticSetter_Field {
static set #foo(value: string) { }
#foo = "foo";
}
// Error
class A_StaticSetter_Method {
static set #foo(value: string) { }
#foo() { }
}
// Error
class A_StaticSetter_Getter {
static set #foo(value: string) { }
get #foo() { return ""}
}
// Error
class A_StaticSetter_Setter {
static set #foo(value: string) { }
set #foo(value: string) { }
}
// Error
class A_StaticSetter_StaticField {
static set #foo(value: string) { }
static #foo = "foo";
}
// Error
class A_StaticSetter_StaticMethod {
static set #foo(value: string) { }
static #foo() { }
}
// OK
class A_StaticSetter_StaticGetter {
static set #foo(value: string) { }
static get #foo() { return ""}
}
// Error
class A_StaticSetter_StaticSetter {
static set #foo(value: string) { }
static set #foo(value: string) { }
}
}
//// [privateNameDuplicateField.js]
"use strict";
function Field() {
var _A_Field_Field_foo, _A_Field_Field_foo_1, _A_Field_Method_instances, _A_Field_Method_foo, _A_Field_Method_foo_1, _A_Field_Getter_instances, _A_Field_Getter_foo, _A_Field_Getter_foo_get, _A_Field_Setter_instances, _A_Field_Setter_foo, _A_Field_Setter_foo_set, _a, _A_Field_StaticField_foo, _A_Field_StaticField_foo_1, _b, _A_Field_StaticMethod_foo, _A_Field_StaticMethod_foo_1, _c, _A_Field_StaticGetter_foo, _A_Field_StaticGetter_foo_get, _d, _A_Field_StaticSetter_foo, _A_Field_StaticSetter_foo_set;
// Error
class A_Field_Field {
constructor() {
_A_Field_Field_foo_1.set(this, "foo");
_A_Field_Field_foo_1.set(this, "foo");
}
#foo = "foo";
#foo = "foo";
}
_A_Field_Field_foo = new WeakMap(), _A_Field_Field_foo_1 = new WeakMap();
// Error
class A_Field_Method {
constructor() {
_A_Field_Method_instances.add(this);
}
#foo = "foo";
#foo() { }
}
_A_Field_Method_foo = new WeakMap(), _A_Field_Method_instances = new WeakSet();
// Error
class A_Field_Getter {
constructor() {
_A_Field_Getter_instances.add(this);
}
#foo = "foo";
get #foo() { return ""; }
}
_A_Field_Getter_foo = new WeakMap(), _A_Field_Getter_instances = new WeakSet();
// Error
class A_Field_Setter {
constructor() {
_A_Field_Setter_instances.add(this);
}
#foo = "foo";
set #foo(value) { }
}
_A_Field_Setter_foo = new WeakMap(), _A_Field_Setter_instances = new WeakSet();
// Error
class A_Field_StaticField {
constructor() {
_A_Field_StaticField_foo_1 = { value: "foo" };
}
#foo = "foo";
static #foo = "foo";
}
_a = A_Field_StaticField, _A_Field_StaticField_foo = new WeakMap();
_A_Field_StaticField_foo_1 = { value: "foo" };
// Error
class A_Field_StaticMethod {
#foo = "foo";
static #foo() { }
}
_b = A_Field_StaticMethod, _A_Field_StaticMethod_foo = new WeakMap();
// Error
class A_Field_StaticGetter {
#foo = "foo";
static get #foo() { return ""; }
}
_c = A_Field_StaticGetter, _A_Field_StaticGetter_foo = new WeakMap();
// Error
class A_Field_StaticSetter {
#foo = "foo";
static set #foo(value) { }
}
_d = A_Field_StaticSetter, _A_Field_StaticSetter_foo = new WeakMap();
}
function Method() {
var _A_Method_Field_instances, _A_Method_Field_foo, _A_Method_Field_foo_1, _A_Method_Method_instances, _A_Method_Method_foo, _A_Method_Method_foo_1, _A_Method_Getter_instances, _A_Method_Getter_foo, _A_Method_Getter_foo_get, _A_Method_Setter_instances, _A_Method_Setter_foo, _A_Method_Setter_foo_set, _A_Method_StaticField_instances, _a, _A_Method_StaticField_foo, _A_Method_StaticField_foo_1, _A_Method_StaticMethod_instances, _b, _A_Method_StaticMethod_foo, _A_Method_StaticMethod_foo_1, _A_Method_StaticGetter_instances, _c, _A_Method_StaticGetter_foo, _A_Method_StaticGetter_foo_get, _A_Method_StaticSetter_instances, _d, _A_Method_StaticSetter_foo, _A_Method_StaticSetter_foo_set;
// Error
class A_Method_Field {
constructor() {
_A_Method_Field_instances.add(this);
_A_Method_Field_foo_1.set(this, "foo");
}
#foo() { }
#foo = "foo";
}
_A_Method_Field_foo_1 = new WeakMap(), _A_Method_Field_instances = new WeakSet();
// Error
class A_Method_Method {
constructor() {
_A_Method_Method_instances.add(this);
}
#foo() { }
#foo() { }
}
_A_Method_Method_instances = new WeakSet();
// Error
class A_Method_Getter {
constructor() {
_A_Method_Getter_instances.add(this);
}
#foo() { }
get #foo() { return ""; }
}
_A_Method_Getter_instances = new WeakSet();
// Error
class A_Method_Setter {
constructor() {
_A_Method_Setter_instances.add(this);
}
#foo() { }
set #foo(value) { }
}
_A_Method_Setter_instances = new WeakSet();
// Error
class A_Method_StaticField {
constructor() {
_A_Method_StaticField_instances.add(this);
}
#foo() { }
static #foo = "foo";
}
_a = A_Method_StaticField, _A_Method_StaticField_instances = new WeakSet();
_A_Method_StaticField_foo_1 = { value: "foo" };
// Error
class A_Method_StaticMethod {
constructor() {
_A_Method_StaticMethod_instances.add(this);
}
#foo() { }
static #foo() { }
}
_b = A_Method_StaticMethod, _A_Method_StaticMethod_instances = new WeakSet();
// Error
class A_Method_StaticGetter {
constructor() {
_A_Method_StaticGetter_instances.add(this);
}
#foo() { }
static get #foo() { return ""; }
}
_c = A_Method_StaticGetter, _A_Method_StaticGetter_instances = new WeakSet();
// Error
class A_Method_StaticSetter {
constructor() {
_A_Method_StaticSetter_instances.add(this);
}
#foo() { }
static set #foo(value) { }
}
_d = A_Method_StaticSetter, _A_Method_StaticSetter_instances = new WeakSet();
}
function Getter() {
var _A_Getter_Field_instances, _A_Getter_Field_foo_get, _A_Getter_Field_foo, _A_Getter_Method_instances, _A_Getter_Method_foo_get, _A_Getter_Method_foo, _A_Getter_Getter_instances, _A_Getter_Getter_foo_get, _A_Getter_Getter_foo_1_get, _A_Getter_Setter_instances, _A_Getter_Setter_foo_get, _A_Getter_Setter_foo_set, _A_Getter_StaticField_instances, _a, _A_Getter_StaticField_foo_get, _A_Getter_StaticField_foo, _A_Getter_StaticMethod_instances, _b, _A_Getter_StaticMethod_foo_get, _A_Getter_StaticMethod_foo, _A_Getter_StaticGetter_instances, _c, _A_Getter_StaticGetter_foo_get, _A_Getter_StaticGetter_foo_1_get, _A_Getter_StaticSetter_instances, _d, _A_Getter_StaticSetter_foo_get, _A_Getter_StaticSetter_foo_set;
// Error
class A_Getter_Field {
constructor() {
_A_Getter_Field_instances.add(this);
_A_Getter_Field_foo.set(this, "foo");
}
get #foo() { return ""; }
#foo = "foo";
}
_A_Getter_Field_foo = new WeakMap(), _A_Getter_Field_instances = new WeakSet();
// Error
class A_Getter_Method {
constructor() {
_A_Getter_Method_instances.add(this);
}
get #foo() { return ""; }
#foo() { }
}
_A_Getter_Method_instances = new WeakSet();
// Error
class A_Getter_Getter {
constructor() {
_A_Getter_Getter_instances.add(this);
}
get #foo() { return ""; }
get #foo() { return ""; }
}
_A_Getter_Getter_instances = new WeakSet();
//OK
class A_Getter_Setter {
constructor() {
_A_Getter_Setter_instances.add(this);
}
}
_A_Getter_Setter_instances = new WeakSet(), _A_Getter_Setter_foo_get = function _A_Getter_Setter_foo_get() { return ""; }, _A_Getter_Setter_foo_set = function _A_Getter_Setter_foo_set(value) { };
// Error
class A_Getter_StaticField {
constructor() {
_A_Getter_StaticField_instances.add(this);
}
get #foo() { return ""; }
static #foo() { }
}
_a = A_Getter_StaticField, _A_Getter_StaticField_instances = new WeakSet();
// Error
class A_Getter_StaticMethod {
constructor() {
_A_Getter_StaticMethod_instances.add(this);
}
get #foo() { return ""; }
static #foo() { }
}
_b = A_Getter_StaticMethod, _A_Getter_StaticMethod_instances = new WeakSet();
// Error
class A_Getter_StaticGetter {
constructor() {
_A_Getter_StaticGetter_instances.add(this);
}
get #foo() { return ""; }
static get #foo() { return ""; }
}
_c = A_Getter_StaticGetter, _A_Getter_StaticGetter_instances = new WeakSet();
// Error
class A_Getter_StaticSetter {
constructor() {
_A_Getter_StaticSetter_instances.add(this);
}
get #foo() { return ""; }
static set #foo(value) { }
}
_d = A_Getter_StaticSetter, _A_Getter_StaticSetter_instances = new WeakSet();
}
function Setter() {
var _A_Setter_Field_instances, _A_Setter_Field_foo_set, _A_Setter_Field_foo, _A_Setter_Method_instances, _A_Setter_Method_foo_set, _A_Setter_Method_foo, _A_Setter_Getter_instances, _A_Setter_Getter_foo_set, _A_Setter_Getter_foo_get, _A_Setter_Setter_instances, _A_Setter_Setter_foo_set, _A_Setter_Setter_foo_1_set, _A_Setter_StaticField_instances, _a, _A_Setter_StaticField_foo_set, _A_Setter_StaticField_foo, _A_Setter_StaticMethod_instances, _b, _A_Setter_StaticMethod_foo_set, _A_Setter_StaticMethod_foo, _A_Setter_StaticGetter_instances, _c, _A_Setter_StaticGetter_foo_set, _A_Setter_StaticGetter_foo_get, _A_Setter_StaticSetter_instances, _d, _A_Setter_StaticSetter_foo_set, _A_Setter_StaticSetter_foo_1_set;
// Error
class A_Setter_Field {
constructor() {
_A_Setter_Field_instances.add(this);
_A_Setter_Field_foo.set(this, "foo");
}
set #foo(value) { }
#foo = "foo";
}
_A_Setter_Field_foo = new WeakMap(), _A_Setter_Field_instances = new WeakSet();
// Error
class A_Setter_Method {
constructor() {
_A_Setter_Method_instances.add(this);
}
set #foo(value) { }
#foo() { }
}
_A_Setter_Method_instances = new WeakSet();
// OK
class A_Setter_Getter {
constructor() {
_A_Setter_Getter_instances.add(this);
}
}
_A_Setter_Getter_instances = new WeakSet(), _A_Setter_Getter_foo_set = function _A_Setter_Getter_foo_set(value) { }, _A_Setter_Getter_foo_get = function _A_Setter_Getter_foo_get() { return ""; };
// Error
class A_Setter_Setter {
constructor() {
_A_Setter_Setter_instances.add(this);
}
set #foo(value) { }
set #foo(value) { }
}
_A_Setter_Setter_instances = new WeakSet();
// Error
class A_Setter_StaticField {
constructor() {
_A_Setter_StaticField_instances.add(this);
}
set #foo(value) { }
static #foo = "foo";
}
_a = A_Setter_StaticField, _A_Setter_StaticField_instances = new WeakSet();
_A_Setter_StaticField_foo = { value: "foo" };
// Error
class A_Setter_StaticMethod {
constructor() {
_A_Setter_StaticMethod_instances.add(this);
}
set #foo(value) { }
static #foo() { }
}
_b = A_Setter_StaticMethod, _A_Setter_StaticMethod_instances = new WeakSet();
// Error
class A_Setter_StaticGetter {
constructor() {
_A_Setter_StaticGetter_instances.add(this);
}
set #foo(value) { }
static get #foo() { return ""; }
}
_c = A_Setter_StaticGetter, _A_Setter_StaticGetter_instances = new WeakSet();
// Error
class A_Setter_StaticSetter {
constructor() {
_A_Setter_StaticSetter_instances.add(this);
}
set #foo(value) { }
static set #foo(value) { }
}
_d = A_Setter_StaticSetter, _A_Setter_StaticSetter_instances = new WeakSet();
}
function StaticField() {
var _a, _A_StaticField_Field_foo, _A_StaticField_Field_foo_1, _A_StaticField_Method_instances, _b, _A_StaticField_Method_foo, _A_StaticField_Method_foo_1, _A_StaticField_Getter_instances, _c, _A_StaticField_Getter_foo, _A_StaticField_Getter_foo_get, _A_StaticField_Setter_instances, _d, _A_StaticField_Setter_foo, _A_StaticField_Setter_foo_set, _e, _A_StaticField_StaticField_foo, _A_StaticField_StaticField_foo_1, _f, _A_StaticField_StaticMethod_foo, _A_StaticField_StaticMethod_foo_1, _g, _A_StaticField_StaticGetter_foo, _A_StaticField_StaticGetter_foo_get, _h, _A_StaticField_StaticSetter_foo, _A_StaticField_StaticSetter_foo_set;
// Error
class A_StaticField_Field {
constructor() {
_A_StaticField_Field_foo_1.set(this, "foo");
}
static #foo = "foo";
#foo = "foo";
}
_a = A_StaticField_Field, _A_StaticField_Field_foo_1 = new WeakMap();
_A_StaticField_Field_foo_1.set(A_StaticField_Field, "foo");
// Error
class A_StaticField_Method {
constructor() {
_A_StaticField_Method_instances.add(this);
}
static #foo = "foo";
#foo() { }
}
_b = A_StaticField_Method, _A_StaticField_Method_instances = new WeakSet();
// Error
class A_StaticField_Getter {
constructor() {
_A_StaticField_Getter_instances.add(this);
}
static #foo = "foo";
get #foo() { return ""; }
}
_c = A_StaticField_Getter, _A_StaticField_Getter_instances = new WeakSet();
// Error
class A_StaticField_Setter {
constructor() {
_A_StaticField_Setter_instances.add(this);
}
static #foo = "foo";
set #foo(value) { }
}
_d = A_StaticField_Setter, _A_StaticField_Setter_instances = new WeakSet();
// Error
class A_StaticField_StaticField {
static #foo = "foo";
static #foo = "foo";
}
_e = A_StaticField_StaticField;
_A_StaticField_StaticField_foo_1 = { value: "foo" };
_A_StaticField_StaticField_foo_1 = { value: "foo" };
// Error
class A_StaticField_StaticMethod {
static #foo = "foo";
static #foo() { }
}
_f = A_StaticField_StaticMethod;
// Error
class A_StaticField_StaticGetter {
static #foo = "foo";
static get #foo() { return ""; }
}
_g = A_StaticField_StaticGetter;
// Error
class A_StaticField_StaticSetter {
static #foo = "foo";
static set #foo(value) { }
}
_h = A_StaticField_StaticSetter;
}
function StaticMethod() {
var _a, _A_StaticMethod_Field_foo, _A_StaticMethod_Field_foo_1, _A_StaticMethod_Method_instances, _b, _A_StaticMethod_Method_foo, _A_StaticMethod_Method_foo_1, _A_StaticMethod_Getter_instances, _c, _A_StaticMethod_Getter_foo, _A_StaticMethod_Getter_foo_get, _A_StaticMethod_Setter_instances, _d, _A_StaticMethod_Setter_foo, _A_StaticMethod_Setter_foo_set, _e, _A_StaticMethod_StaticField_foo, _A_StaticMethod_StaticField_foo_1, _f, _A_StaticMethod_StaticMethod_foo, _A_StaticMethod_StaticMethod_foo_1, _g, _A_StaticMethod_StaticGetter_foo, _A_StaticMethod_StaticGetter_foo_get, _h, _A_StaticMethod_StaticSetter_foo, _A_StaticMethod_StaticSetter_foo_set;
// Error
class A_StaticMethod_Field {
constructor() {
_A_StaticMethod_Field_foo_1.set(this, "foo");
}
static #foo() { }
#foo = "foo";
}
_a = A_StaticMethod_Field, _A_StaticMethod_Field_foo_1 = new WeakMap();
// Error
class A_StaticMethod_Method {
constructor() {
_A_StaticMethod_Method_instances.add(this);
}
static #foo() { }
#foo() { }
}
_b = A_StaticMethod_Method, _A_StaticMethod_Method_instances = new WeakSet();
// Error
class A_StaticMethod_Getter {
constructor() {
_A_StaticMethod_Getter_instances.add(this);
}
static #foo() { }
get #foo() { return ""; }
}
_c = A_StaticMethod_Getter, _A_StaticMethod_Getter_instances = new WeakSet();
// Error
class A_StaticMethod_Setter {
constructor() {
_A_StaticMethod_Setter_instances.add(this);
}
static #foo() { }
set #foo(value) { }
}
_d = A_StaticMethod_Setter, _A_StaticMethod_Setter_instances = new WeakSet();
// Error
class A_StaticMethod_StaticField {
static #foo() { }
static #foo = "foo";
}
_e = A_StaticMethod_StaticField;
_A_StaticMethod_StaticField_foo_1 = { value: "foo" };
// Error
class A_StaticMethod_StaticMethod {
static #foo() { }
static #foo() { }
}
_f = A_StaticMethod_StaticMethod;
// Error
class A_StaticMethod_StaticGetter {
static #foo() { }
static get #foo() { return ""; }
}
_g = A_StaticMethod_StaticGetter;
// Error
class A_StaticMethod_StaticSetter {
static #foo() { }
static set #foo(value) { }
}
_h = A_StaticMethod_StaticSetter;
}
function StaticGetter() {
var _a, _A_StaticGetter_Field_foo_get, _A_StaticGetter_Field_foo, _A_StaticGetter_Method_instances, _b, _A_StaticGetter_Method_foo_get, _A_StaticGetter_Method_foo, _A_StaticGetter_Getter_instances, _c, _A_StaticGetter_Getter_foo_get, _A_StaticGetter_Getter_foo_1_get, _A_StaticGetter_Setter_instances, _d, _A_StaticGetter_Setter_foo_get, _A_StaticGetter_Setter_foo_set, _e, _A_StaticGetter_StaticField_foo_get, _A_StaticGetter_StaticField_foo, _f, _A_StaticGetter_StaticMethod_foo_get, _A_StaticGetter_StaticMethod_foo, _g, _A_StaticGetter_StaticGetter_foo_get, _A_StaticGetter_StaticGetter_foo_1_get, _h, _A_StaticGetter_StaticSetter_foo_get, _A_StaticGetter_StaticSetter_foo_set;
// Error
class A_StaticGetter_Field {
constructor() {
_A_StaticGetter_Field_foo.set(this, "foo");
}
static get #foo() { return ""; }
#foo = "foo";
}
_a = A_StaticGetter_Field, _A_StaticGetter_Field_foo = new WeakMap();
// Error
class A_StaticGetter_Method {
constructor() {
_A_StaticGetter_Method_instances.add(this);
}
static get #foo() { return ""; }
#foo() { }
}
_b = A_StaticGetter_Method, _A_StaticGetter_Method_instances = new WeakSet();
// Error
class A_StaticGetter_Getter {
constructor() {
_A_StaticGetter_Getter_instances.add(this);
}
static get #foo() { return ""; }
get #foo() { return ""; }
}
_c = A_StaticGetter_Getter, _A_StaticGetter_Getter_instances = new WeakSet();
// Error
class A_StaticGetter_Setter {
constructor() {
_A_StaticGetter_Setter_instances.add(this);
}
static get #foo() { return ""; }
set #foo(value) { }
}
_d = A_StaticGetter_Setter, _A_StaticGetter_Setter_instances = new WeakSet();
// Error
class A_StaticGetter_StaticField {
static get #foo() { return ""; }
static #foo() { }
}
_e = A_StaticGetter_StaticField;
// Error
class A_StaticGetter_StaticMethod {
static get #foo() { return ""; }
static #foo() { }
}
_f = A_StaticGetter_StaticMethod;
// Error
class A_StaticGetter_StaticGetter {
static get #foo() { return ""; }
static get #foo() { return ""; }
}
_g = A_StaticGetter_StaticGetter;
// OK
class A_StaticGetter_StaticSetter {
}
_h = A_StaticGetter_StaticSetter, _A_StaticGetter_StaticSetter_foo_get = function _A_StaticGetter_StaticSetter_foo_get() { return ""; }, _A_StaticGetter_StaticSetter_foo_set = function _A_StaticGetter_StaticSetter_foo_set(value) { };
}
function StaticSetter() {
var _a, _A_StaticSetter_Field_foo_set, _A_StaticSetter_Field_foo, _A_StaticSetter_Method_instances, _b, _A_StaticSetter_Method_foo_set, _A_StaticSetter_Method_foo, _A_StaticSetter_Getter_instances, _c, _A_StaticSetter_Getter_foo_set, _A_StaticSetter_Getter_foo_get, _A_StaticSetter_Setter_instances, _d, _A_StaticSetter_Setter_foo_set, _A_StaticSetter_Setter_foo_1_set, _e, _A_StaticSetter_StaticField_foo_set, _A_StaticSetter_StaticField_foo, _f, _A_StaticSetter_StaticMethod_foo_set, _A_StaticSetter_StaticMethod_foo, _g, _A_StaticSetter_StaticGetter_foo_set, _A_StaticSetter_StaticGetter_foo_get, _h, _A_StaticSetter_StaticSetter_foo_set, _A_StaticSetter_StaticSetter_foo_1_set;
// Error
class A_StaticSetter_Field {
constructor() {
_A_StaticSetter_Field_foo.set(this, "foo");
}
static set #foo(value) { }
#foo = "foo";
}
_a = A_StaticSetter_Field, _A_StaticSetter_Field_foo = new WeakMap();
// Error
class A_StaticSetter_Method {
constructor() {
_A_StaticSetter_Method_instances.add(this);
}
static set #foo(value) { }
#foo() { }
}
_b = A_StaticSetter_Method, _A_StaticSetter_Method_instances = new WeakSet();
// Error
class A_StaticSetter_Getter {
constructor() {
_A_StaticSetter_Getter_instances.add(this);
}
static set #foo(value) { }
get #foo() { return ""; }
}
_c = A_StaticSetter_Getter, _A_StaticSetter_Getter_instances = new WeakSet();
// Error
class A_StaticSetter_Setter {
constructor() {
_A_StaticSetter_Setter_instances.add(this);
}
static set #foo(value) { }
set #foo(value) { }
}
_d = A_StaticSetter_Setter, _A_StaticSetter_Setter_instances = new WeakSet();
// Error
class A_StaticSetter_StaticField {
static set #foo(value) { }
static #foo = "foo";
}
_e = A_StaticSetter_StaticField;
_A_StaticSetter_StaticField_foo = { value: "foo" };
// Error
class A_StaticSetter_StaticMethod {
static set #foo(value) { }
static #foo() { }
}
_f = A_StaticSetter_StaticMethod;
// OK
class A_StaticSetter_StaticGetter {
}
_g = A_StaticSetter_StaticGetter, _A_StaticSetter_StaticGetter_foo_set = function _A_StaticSetter_StaticGetter_foo_set(value) { }, _A_StaticSetter_StaticGetter_foo_get = function _A_StaticSetter_StaticGetter_foo_get() { return ""; };
// Error
class A_StaticSetter_StaticSetter {
static set #foo(value) { }
static set #foo(value) { }
}
_h = A_StaticSetter_StaticSetter;
}