blob: 2690c1a4a2991f40e12cf3c3ce3d5b365350fbc0 [file] [log] [blame]
package unimported
import (
"golang.org/x/tools/internal/lsp/baz"
"golang.org/x/tools/internal/lsp/signature" // provide type information for unimported completions in the other file
)
func _() {
foo.StructFoo{} //@item(litFooStructFoo, "foo.StructFoo{}", "struct{...}", "struct")
// We get the literal completion for "foo.StructFoo{}" even though we haven't
// imported "foo" yet.
baz.FooStruct = f //@snippet(" //", litFooStructFoo, "foo.StructFoo{$0\\}", "foo.StructFoo{$0\\}")
}