diff options
author | Teddy Wing | 2023-05-23 00:27:12 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-23 00:27:12 +0200 |
commit | cfba6ff882313ccf1ffe5c6b368ec769e4cae9a1 (patch) | |
tree | bb2f2522b95b940c1cca0458ed6a87408cc4c958 /testdata/signature.go | |
parent | a32bf36f55f404f75f42fdc428d3b9e9d6fa8097 (diff) | |
download | godefererr-cfba6ff882313ccf1ffe5c6b368ec769e4cae9a1.tar.bz2 |
Idea about multiple return values
Diffstat (limited to 'testdata/signature.go')
-rw-r--r-- | testdata/signature.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testdata/signature.go b/testdata/signature.go index 1cc466e..2606c22 100644 --- a/testdata/signature.go +++ b/testdata/signature.go @@ -60,6 +60,8 @@ func deferUsesUnconventionalErrName() error { // want "return signature should b return anErr } +// TODO: This is starting to look like needless complexity. Maybe we just +// report that the error variable must be declared in the signature instead. func multipleReturnValuesString() (string, error) { // want "return signature should be '\\(string1 string, err error\\)'" var err error = nil if err != nil { |