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 / embedded_call / embedded_call.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/unused/testdata/src/embedded_call/embedded_call.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/unused/testdata/src/embedded_call/embedded_call.go
new file mode 100644 (file)
index 0000000..196ac0d
--- /dev/null
@@ -0,0 +1,21 @@
+package pkg
+
+var t1 struct {
+       t2
+       t3
+       t4
+}
+
+type t2 struct{}
+type t3 struct{}
+type t4 struct{ t5 }
+type t5 struct{}
+
+func (t2) foo() {}
+func (t3) bar() {}
+func (t5) baz() {}
+func init() {
+       t1.foo()
+       _ = t1.bar
+       t1.baz()
+}