golang.org/x/tools/gopls@v0.15.3/internal/analysis/noresultvalues/testdata/src/a/a.go (about)

     1  // Copyright 2020 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package noresultvalues
     6  
     7  func x() { return nil } // want `no result values expected|too many return values`
     8  
     9  func y() { return nil, "hello" } // want `no result values expected|too many return values`