Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / simple / testdata / src / receive-blank / receive-blank.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/receive-blank/receive-blank.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/receive-blank/receive-blank.go
new file mode 100644 (file)
index 0000000..7e2087a
--- /dev/null
@@ -0,0 +1,15 @@
+package pkg
+
+func fn() {
+       var ch chan int
+       <-ch
+       _ = <-ch // want `unnecessary assignment to the blank identifier`
+       select {
+       case <-ch:
+       case _ = <-ch: // want `unnecessary assignment to the blank identifier`
+       }
+       x := <-ch
+       y, _ := <-ch, <-ch
+       _, z := <-ch, <-ch
+       _, _, _ = x, y, z
+}