aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/keywords/empty_switch.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/keywords/empty_switch.go')
-rw-r--r--gopls/internal/lsp/testdata/keywords/empty_switch.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/keywords/empty_switch.go b/gopls/internal/lsp/testdata/keywords/empty_switch.go
new file mode 100644
index 000000000..2004d5541
--- /dev/null
+++ b/gopls/internal/lsp/testdata/keywords/empty_switch.go
@@ -0,0 +1,11 @@
+package keywords
+
+func _() {
+ switch {
+ //@complete("", case, default)
+ }
+
+ switch test.(type) {
+ d //@complete(" //", default)
+ }
+}