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
1 // Package pkg ...
2 package pkg
3
4 type t1 int
5 type T2 int
6 type Recv int
7 type recv int
8
9 func fn1() string { return "" }
10 func Fn2() error  { return nil }
11 func fn3() error  { return nil }
12 func fn5() t1     { return 0 }
13 func Fn6() t1     { return 0 }   // want `should not return unexported type`
14 func Fn7() *t1    { return nil } // want `should not return unexported type`
15 func Fn8() T2     { return 0 }
16
17 func (Recv) fn9() t1  { return 0 }
18 func (Recv) Fn10() t1 { return 0 } // want `should not return unexported type`
19 func (Recv) Fn11() T2 { return 0 }
20
21 func (recv) fn9() t1  { return 0 }
22 func (recv) Fn10() t1 { return 0 }
23 func (recv) Fn11() T2 { return 0 }