golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/stubmethods/basic.txt (about)

     1  This test exercises basic 'stub methods' functionality.
     2  See basic_resolve.txt for the same test with resolve support.
     3  
     4  -- go.mod --
     5  module example.com
     6  go 1.12
     7  
     8  -- a/a.go --
     9  package a
    10  
    11  type C int
    12  
    13  var _ error = C(0) //@suggestedfix(re"C.0.", re"missing method Error", stub)
    14  -- @stub/a/a.go --
    15  @@ -5 +5,5 @@
    16  +// Error implements error.
    17  +func (c C) Error() string {
    18  +	panic("unimplemented")
    19  +}
    20  +