X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckAddressIsNil%2FCheckAddressIsNil.go;fp=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckAddressIsNil%2FCheckAddressIsNil.go;h=0000000000000000000000000000000000000000;hp=cde6151e95abb06d3f05d2a63e83930a20d03feb;hb=3ddadb3c98564791f0ac36cb39771d844a63dc91;hpb=5f797af6612ed10887189b47a1efc2f915586e59 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 index cde6151e..00000000 --- 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 +++ /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 { - } -}