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 / unused_type / unused_type.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/unused_type/unused_type.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/unused/testdata/src/unused_type/unused_type.go
new file mode 100644 (file)
index 0000000..0881ffe
--- /dev/null
@@ -0,0 +1,17 @@
+package pkg
+
+type t1 struct{} // want `t1`
+
+func (t1) Fn() {}
+
+type t2 struct{}
+
+func (*t2) Fn() {}
+
+func init() {
+       (*t2).Fn(nil)
+}
+
+type t3 struct{} // want `t3`
+
+func (t3) fn()