--- /dev/null
+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\\}")
+}