aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/fillstruct/fill_struct_nested.go.golden
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/fillstruct/fill_struct_nested.go.golden')
-rw-r--r--gopls/internal/lsp/testdata/fillstruct/fill_struct_nested.go.golden19
1 files changed, 19 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/fillstruct/fill_struct_nested.go.golden b/gopls/internal/lsp/testdata/fillstruct/fill_struct_nested.go.golden
new file mode 100644
index 000000000..c902ee7f1
--- /dev/null
+++ b/gopls/internal/lsp/testdata/fillstruct/fill_struct_nested.go.golden
@@ -0,0 +1,19 @@
+-- suggestedfix_fill_struct_nested_13_20 --
+package fillstruct
+
+type StructB struct {
+ StructC
+}
+
+type StructC struct {
+ unexportedInt int
+}
+
+func nested() {
+ c := StructB{
+ StructC: StructC{
+ unexportedInt: 0,
+ }, //@suggestedfix("}", "refactor.rewrite", "Fill")
+ }
+}
+