diff options
Diffstat (limited to 'gopls/internal/lsp/testdata/rename/generics/unions.go')
-rw-r--r-- | gopls/internal/lsp/testdata/rename/generics/unions.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/rename/generics/unions.go b/gopls/internal/lsp/testdata/rename/generics/unions.go new file mode 100644 index 000000000..c737b5c27 --- /dev/null +++ b/gopls/internal/lsp/testdata/rename/generics/unions.go @@ -0,0 +1,10 @@ +//go:build go1.18 +// +build go1.18 + +package generics + +type T string //@rename("T", "R") + +type C interface { + T | ~int //@rename("T", "S") +} |