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 / _CheckUnexportedReturn.disabled / CheckUnexportedReturn.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/_CheckUnexportedReturn.disabled/CheckUnexportedReturn.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/_CheckUnexportedReturn.disabled/CheckUnexportedReturn.go
new file mode 100644 (file)
index 0000000..0a49b88
--- /dev/null
@@ -0,0 +1,23 @@
+// Package pkg ...
+package pkg
+
+type t1 int
+type T2 int
+type Recv int
+type recv int
+
+func fn1() string { return "" }
+func Fn2() error  { return nil }
+func fn3() error  { return nil }
+func fn5() t1     { return 0 }
+func Fn6() t1     { return 0 }   // want `should not return unexported type`
+func Fn7() *t1    { return nil } // want `should not return unexported type`
+func Fn8() T2     { return 0 }
+
+func (Recv) fn9() t1  { return 0 }
+func (Recv) Fn10() t1 { return 0 } // want `should not return unexported type`
+func (Recv) Fn11() T2 { return 0 }
+
+func (recv) fn9() t1  { return 0 }
+func (recv) Fn10() t1 { return 0 }
+func (recv) Fn11() T2 { return 0 }