projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
/
staticcheck
/
testdata
/
src
/
CheckNilMaps
/
CheckNilMaps.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckNilMaps/CheckNilMaps.go
b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckNilMaps/CheckNilMaps.go
new file mode 100644
(file)
index 0000000..
0fbfc08
--- /dev/null
+++ b/
.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckNilMaps/CheckNilMaps.go
@@ -0,0
+1,10
@@
+package pkg
+
+func fn1() {
+ var m map[int]int
+ m[1] = 1 // want `assignment to nil map`
+}
+
+func fn2(m map[int]int) {
+ m[1] = 1
+}