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 / stylecheck / testdata / src / CheckReceiverNamesIdentical / CheckReceiverNames.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckReceiverNamesIdentical/CheckReceiverNames.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckReceiverNamesIdentical/CheckReceiverNames.go
new file mode 100644 (file)
index 0000000..fb8d28f
--- /dev/null
@@ -0,0 +1,16 @@
+// Package pkg ...
+package pkg
+
+type T1 int
+
+func (x T1) Fn1()    {} // want `methods on the same type should have the same receiver name`
+func (y T1) Fn2()    {}
+func (x T1) Fn3()    {}
+func (T1) Fn4()      {}
+func (_ T1) Fn5()    {}
+func (self T1) Fn6() {}
+
+func (bar T3) Fn2()  {} // want `1x "bar", 1x "meow"`
+func (meow T3) Fn3() {}
+
+func (bar T4) Fn2() {}