some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / CheckAddressIsNil / CheckAddressIsNil.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/CheckAddressIsNil/CheckAddressIsNil.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckAddressIsNil/CheckAddressIsNil.go
deleted file mode 100644 (file)
index cde6151..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-package pkg
-
-func fn(x int, y *int) {
-       _ = &x == nil // want `the address of a variable cannot be nil`
-       _ = &y != nil // want `the address of a variable cannot be nil`
-
-       if &x != nil { // want `the address of a variable cannot be nil`
-               println("obviously.")
-       }
-
-       if y == nil {
-       }
-}