blob: 531aa2d180ad3cbcffacc18db02a0c5d99861a3f [file] [log] [blame]
package unimported
import (
_ "context"
"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\\}")
}