aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/nested_complit/nested_complit.go.in
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/nested_complit/nested_complit.go.in')
-rw-r--r--gopls/internal/lsp/testdata/nested_complit/nested_complit.go.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/nested_complit/nested_complit.go.in b/gopls/internal/lsp/testdata/nested_complit/nested_complit.go.in
new file mode 100644
index 000000000..3ad2d213e
--- /dev/null
+++ b/gopls/internal/lsp/testdata/nested_complit/nested_complit.go.in
@@ -0,0 +1,15 @@
+package nested_complit
+
+type ncFoo struct {} //@item(structNCFoo, "ncFoo", "struct{...}", "struct")
+
+type ncBar struct { //@item(structNCBar, "ncBar", "struct{...}", "struct")
+ baz []ncFoo
+}
+
+func _() {
+ []ncFoo{} //@item(litNCFoo, "[]ncFoo{}", "", "var")
+ _ := ncBar{
+ // disabled - see issue #54822
+ baz: [] // complete(" //", structNCFoo, structNCBar)
+ }
+}