aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/stub/stub_function_return.go.golden
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/stub/stub_function_return.go.golden')
-rw-r--r--gopls/internal/lsp/testdata/stub/stub_function_return.go.golden18
1 files changed, 18 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/stub/stub_function_return.go.golden b/gopls/internal/lsp/testdata/stub/stub_function_return.go.golden
new file mode 100644
index 000000000..e90712e69
--- /dev/null
+++ b/gopls/internal/lsp/testdata/stub/stub_function_return.go.golden
@@ -0,0 +1,18 @@
+-- suggestedfix_stub_function_return_8_9 --
+package stub
+
+import (
+ "io"
+)
+
+func newCloser() io.Closer {
+ return closer{} //@suggestedfix("c", "refactor.rewrite", "")
+}
+
+type closer struct{}
+
+// Close implements io.Closer
+func (closer) Close() error {
+ panic("unimplemented")
+}
+