diff options
Diffstat (limited to 'gopls/internal/lsp/testdata/types/types.go')
-rw-r--r-- | gopls/internal/lsp/testdata/types/types.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/types/types.go b/gopls/internal/lsp/testdata/types/types.go new file mode 100644 index 000000000..c60d4b2e4 --- /dev/null +++ b/gopls/internal/lsp/testdata/types/types.go @@ -0,0 +1,18 @@ +package types + +type CoolAlias = int //@item(CoolAlias, "CoolAlias", "int", "type") + +type X struct { //@item(X_struct, "X", "struct{...}", "struct") + x int +} + +type Y struct { //@item(Y_struct, "Y", "struct{...}", "struct") + y int +} + +type Bob interface { //@item(Bob_interface, "Bob", "interface{...}", "interface") + Bobby() +} + +func (*X) Bobby() {} +func (*Y) Bobby() {} |