mirror of https://github.com/golang/go.git
15 lines
329 B
Go
15 lines
329 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{
|
|
baz: [] //@complete(" //", structNCFoo, structNCBar)
|
|
}
|
|
}
|