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 / CheckErrorReturn / CheckErrorReturn.go
1 // Package pkg ...
2 package pkg
3
4 func fn1() (error, int)        { return nil, 0 }      // want `error should be returned as the last argument`
5 func fn2() (a, b error, c int) { return nil, nil, 0 } // want `error should be returned as the last argument`
6 func fn3() (a int, b, c error) { return 0, nil, nil }
7 func fn4() (error, error)      { return nil, nil }
8 func fn5() int                 { return 0 }
9 func fn6() (int, error)        { return 0, nil }
10 func fn7() (error, int, error) { return nil, 0, nil }