go/internal/lsp/testdata/nested_complit/nested_complit.go.in

16 lines
362 B
Go

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)
}
}