...
1
2
3
4
5
6
7
8
9
10 package ignore
11
12
13 import "io"
14
15
16
17
18
19 type A int
20
21
22
23 type B int
24
25
26
27 type B string
28
29
30
31
32 type AA = A
33
34
35 type B1 bool
36
37
38
39 type t int
40
41
42 type t string
43
44
45
46 var V2 u
47
48
49 type u string
50
51
52
53 type u int
54
55
56
57 type u2 int
58
59
60 type u1 int
61
62 var V5 u1
63
64
65 var V5 u2
66
67
68
69 type u3 int
70
71
72 type (
73 Split1 = u1
74 Split2 = u1
75 )
76
77
78 type (
79 Split1 = u2
80
81
82
83 Split2 = u3
84 )
85
86
87
88 type (
89 GoodMerge1 = u2
90 GoodMerge2 = u3
91 )
92
93
94 type (
95 GoodMerge1 = u3
96 GoodMerge2 = u3
97 )
98
99
100
101 type u4 int
102
103 func (u4) M() {}
104
105
106 type (
107 BadMerge1 = u3
108 BadMerge2 = u4
109 )
110
111
112 type (
113 BadMerge1 = u3
114
115
116
117 BadMerge2 = u3
118 )
119
120
121 type Rem int
122
123
124
125
126
127
128
129
130 const (
131 C1 = 1
132 C2 int = 2
133 C3 = 3
134 C4 u1 = 4
135 )
136
137 var V8 int
138
139
140 const (
141
142 C1 = "1"
143
144 C2 = -1
145
146 C3 int = 3
147
148 V8 int = 1
149 C4 u2 = 4
150 )
151
152
153
154 const (
155 Cr1 = 1
156 Cr2 = "2"
157 Cr3 = 3.5
158 Cr4 = complex(0, 4.1)
159 )
160
161
162 const (
163
164 Cr1 = -1
165
166 Cr2 = "3"
167
168 Cr3 = 3.8
169
170 Cr4 = complex(4.1, 0)
171 )
172
173
174
175
176
177 var (
178 V1 string
179 V3 A
180 V7 <-chan int
181 )
182
183
184 var (
185
186 V1 []string
187 V3 A
188
189 V7 chan int
190 )
191
192
193
194 var (
195 V9 interface{ M() }
196 V10 interface{ M() }
197 V11 interface{ M() }
198 )
199
200
201 var (
202
203 V9 interface{}
204
205 V10 interface {
206 M2()
207 M()
208 }
209
210 V11 interface{ M(int) }
211 )
212
213
214
215 var (
216 VS1 struct{ A, B int }
217 VS2 struct{ A, B int }
218 VS3 struct{ A, B int }
219 VS4 struct {
220 A int
221 u1
222 }
223 )
224
225
226 var (
227
228 VS1 struct{ B, A int }
229
230 VS2 struct{ A int }
231
232 VS3 struct{ A, B, C int }
233 VS4 struct {
234 A int
235 u2
236 }
237 )
238
239
240
241
242 const C5 = 3
243
244 type (
245 A1 [1]int
246 A2 [2]int
247 A3 [C5]int
248 )
249
250
251
252 const C5 = 4
253
254 type (
255 A1 [1]int
256
257 A2 [2]bool
258
259 A3 [C5]int
260 )
261
262
263 type (
264 Sl []int
265 P1 *int
266 P2 *u1
267 )
268
269
270 type (
271
272 Sl []string
273
274 P1 **bool
275 P2 *u2
276 )
277
278
279 type Bc1 int32
280 type Bc2 uint
281 type Bc3 float32
282 type Bc4 complex64
283
284
285
286 type Bc1 int
287
288
289 type Bc2 uint64
290
291
292 type Bc3 float64
293
294
295 type Bc4 complex128
296
297
298 type Bi1 int32
299 type Bi2 uint
300 type Bi3 float64
301 type Bi4 complex128
302
303
304
305 type Bi1 int16
306
307
308 type Bi2 uint32
309
310
311 type Bi3 float32
312
313
314 type Bi4 complex64
315
316
317 type (
318 M1 map[string]int
319 M2 map[string]int
320 M3 map[string]int
321 )
322
323
324 type (
325 M1 map[string]int
326
327 M2 map[int]int
328
329 M3 map[string]string
330 )
331
332
333 type (
334 Ch1 chan int
335 Ch2 <-chan int
336 Ch3 chan int
337 Ch4 <-chan int
338 )
339
340
341 type (
342
343 Ch1 chan bool
344
345 Ch2 chan<- int
346
347 Ch3 <-chan int
348
349 Ch4 chan int
350 )
351
352
353 type I1 interface {
354 M1()
355 M2()
356 }
357
358
359 type I1 interface {
360
361
362 M2(int)
363
364 M3()
365
366 m()
367
368 }
369
370
371 type I2 interface {
372 M1()
373 m()
374 }
375
376
377 type I2 interface {
378 M1()
379
380 m2()
381
382 M2()
383 }
384
385
386 type I3 interface {
387 io.Reader
388 M()
389 }
390
391
392
393
394 type I3 interface {
395 M()
396 Read([]byte) (int, error)
397 }
398
399
400 type I4 io.Writer
401
402
403
404
405 type I4 interface {
406 Write([]byte) (int, error)
407 }
408
409
410 type I5 = io.Writer
411
412
413
414
415
416
417 type I5 io.Writer
418
419
420 type I6 interface{ Write([]byte) (int, error) }
421
422
423
424
425 type I6 = io.Writer
426
427
428
429
430
431
432 type T1 int
433
434
435 var VT1 T1
436
437
438
439
440 var VT1 int
441
442
443 type t2 int
444
445 var VT2 t2
446
447
448
449
450 var VT2 int
451
452
453 type t3 int
454
455 func (t3) M() {}
456
457
458 var VT3 t3
459
460
461
462
463
464 var VT3 int
465
466
467 var VT4 int
468
469
470 type t4 int
471
472
473
474
475
476
477
478
479 var VT4 t4
480
481
482
483
484 func F1(a int, b string) map[u1]A { return nil }
485 func F2(int) {}
486 func F3(int) {}
487 func F4(int) int { return 0 }
488 func F5(int) int { return 0 }
489 func F6(int) {}
490 func F7(interface{}) {}
491
492
493 func F1(c int, d string) map[u2]AA { return nil }
494
495
496 func F2(int) bool { return true }
497
498
499 func F3(int, int) {}
500
501
502 func F4(bool) int { return 0 }
503
504
505 func F5(int) string { return "" }
506
507
508 func F6(...int) {}
509
510
511 func F7(a interface{ x() }) {}
512
513
514 func F8(bool) {}
515
516
517
518 var F8 func(bool)
519
520
521 var F9 func(int)
522
523
524
525 func F9(int) {}
526
527
528
529 func F10(S1) {}
530
531
532
533
534 type S1 struct {
535 A int
536 B string
537 C bool
538 d float32
539 }
540
541
542 type S1 = s1
543
544 type s1 struct {
545 C chan int
546
547 A int
548
549
550 x []int
551 d float32
552 E bool
553
554 }
555
556
557 type embed struct {
558 E string
559 }
560
561 type S2 struct {
562 A int
563 embed
564 }
565
566
567 type embedx struct {
568 E string
569 }
570
571 type S2 struct {
572 embedx
573 A int
574 }
575
576
577 type F int
578
579
580 type S3 struct {
581 A int
582 embed
583 }
584
585
586 type embed struct{ F int }
587
588 type S3 struct {
589
590 embed
591
592 A int
593 }
594
595
596 type embed2 struct {
597 embed3
598 F
599 }
600
601 type embed3 struct {
602 F bool
603 }
604
605 type alias = struct{ D bool }
606
607 type S4 struct {
608 int
609 *embed2
610 embed
611 E int
612 alias
613 A1
614 *S4
615 }
616
617
618 type S4 struct {
619
620
621 D bool
622
623 E int
624 F F
625
626 A1
627 *S4
628 }
629
630
631
632 type S5 struct{ A int }
633
634
635
636
637 type S6 struct {
638 S5 S5
639 A int
640 }
641
642
643
644
645
646
647 type S6 struct {
648 S5
649 }
650
651
652
653 type (
654 embed7a struct{ E int }
655 embed7b struct{ E bool }
656 )
657
658
659 type S7 struct {
660 embed7a
661 embed7b
662 }
663
664
665 type S7 struct {
666 embed7a
667 embed7b
668
669 E string
670 }
671
672
673
674
675 type SM struct {
676 embedm
677 Embedm
678 }
679
680 func (SM) V1() {}
681 func (SM) V2() {}
682 func (SM) V3() {}
683 func (SM) V4() {}
684 func (SM) v() {}
685
686 func (*SM) P1() {}
687 func (*SM) P2() {}
688 func (*SM) P3() {}
689 func (*SM) P4() {}
690 func (*SM) p() {}
691
692 type embedm int
693
694 func (embedm) EV1() {}
695 func (embedm) EV2() {}
696 func (embedm) EV3() {}
697 func (*embedm) EP1() {}
698 func (*embedm) EP2() {}
699 func (*embedm) EP3() {}
700
701 type Embedm struct {
702 A int
703 }
704
705 func (Embedm) FV() {}
706 func (*Embedm) FP() {}
707
708 type RepeatEmbedm struct {
709 Embedm
710 }
711
712
713 type SM struct {
714 embedm2
715 embedm3
716 Embedm
717
718 }
719
720
721 type SMa = SM
722
723 func (SM) V1() {}
724
725
726
727
728
729 func (SM) V3(int) {}
730
731
732 func (SM) V5() {}
733
734 func (SM) v(int) {}
735 func (SM) v2() {}
736
737 func (*SM) P1() {}
738
739
740
741
742 func (*SMa) P3(int) {}
743
744
745 func (*SM) P5() {}
746
747
748
749
750
751
752
753
754 func (*SM) V4(int) {}
755
756
757
758
759 func (SM) P4() {}
760
761 type embedm2 int
762
763
764 func (embedm2) EV1(int) {}
765
766
767
768
769
770 func (*embedm2) EP1() {}
771
772 type embedm3 int
773
774 func (embedm3) EV3() {}
775 func (*embedm3) EP3() {}
776
777 type Embedm struct {
778
779 A bool
780 }
781
782
783 func (Embedm) FV(int) {}
784 func (*Embedm) FP() {}
785
786 type RepeatEmbedm struct {
787
788 Embedm
789 }
790
791
792
793
794 type WI1 interface {
795 M1()
796 m1()
797 }
798
799 type WI2 interface {
800 M2()
801 m2()
802 }
803
804 type WS1 int
805
806 func (WS1) M1() {}
807 func (WS1) m1() {}
808
809 type WS2 int
810
811 func (WS2) M2() {}
812 func (WS2) m2() {}
813
814
815 type WI1 interface {
816 M1()
817 m()
818 }
819
820 type WS1 int
821
822 func (WS1) M1() {}
823
824
825
826
827 type WI2 interface {
828 M2()
829 m2()
830
831 m3()
832 }
833
834 type WS2 int
835
836 func (WS2) M2() {}
837 func (WS2) m2() {}
838
839
840
841
842
843
844
845 var Z w
846
847 type w []x
848 type x []z
849 type z int
850
851
852 var Z w
853
854 type w []x
855 type x []z
856
857
858 type z bool
859
860
861 type H struct{}
862
863 func (H) M() {}
864
865
866
867 type H interface {
868 M()
869 }
870
871
872
873
874
875 type (
876 J1 = K1
877 K1 = L1
878 L1 int
879 )
880
881
882 type (
883 J1 = K1
884 K1 int
885 L1 = J1
886 )
887
888
889
890 type K2 int
891
892
893 type J2 = K2
894
895
896
897 type J2 K2
898
899
900
901 type k3 int
902
903 var Vj3 j3
904
905
906 type j3 = k3
907
908
909
910 type j3 k3
911
912
913 type k4 int
914
915 var Vj4 j4
916 var VK4 k4
917
918
919 type j4 = k4
920
921
922
923
924 type j4 k4
925
View as plain text