Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / unused / testdata / src / embedding / embedding.go
1 package pkg
2
3 type I interface {
4         f1()
5         f2()
6 }
7
8 func init() {
9         var _ I
10 }
11
12 type t1 struct{}
13 type T2 struct{ t1 }
14
15 func (t1) f1() {}
16 func (T2) f2() {}
17
18 func Fn() {
19         var v T2
20         _ = v.t1
21 }
22
23 type I2 interface {
24         f3()
25         f4()
26 }
27
28 type t3 struct{}
29 type t4 struct {
30         x int // want `x`
31         y int // want `y`
32         t3
33 }
34
35 func (*t3) f3() {}
36 func (*t4) f4() {}
37
38 func init() {
39         var i I2 = &t4{}
40         i.f3()
41         i.f4()
42 }
43
44 type i3 interface {
45         F()
46 }
47
48 type I4 interface {
49         i3
50 }
51
52 type T5 struct {
53         t6
54 }
55
56 type t6 struct {
57         F int
58 }
59
60 type t7 struct{ X int }
61 type t8 struct{ t7 }
62 type t9 struct{ t8 }
63
64 var _ = t9{}
65
66 type t10 struct{}
67
68 func (*t10) Foo() {}
69
70 type t11 struct{ t10 }
71
72 var _ = t11{}
73
74 type i5 interface{}
75 type I6 interface {
76         i5
77 }