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 / CheckBlankOK / LintBlankOK.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/CheckBlankOK/LintBlankOK.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/CheckBlankOK/LintBlankOK.go
new file mode 100644 (file)
index 0000000..1e23394
--- /dev/null
@@ -0,0 +1,12 @@
+package pkg
+
+func fn() {
+       var m map[int]int
+       var ch chan int
+       var fn func() (int, bool)
+
+       x, _ := m[0] // want `unnecessary assignment to the blank identifier`
+       x, _ = <-ch  // want `unnecessary assignment to the blank identifier`
+       x, _ = fn()
+       _ = x
+}