.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / staticcheck / testdata / src / checkStdlibUsageRegexpFindAll / checkStdlibUsageRegexpFindAll.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/checkStdlibUsageRegexpFindAll/checkStdlibUsageRegexpFindAll.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/checkStdlibUsageRegexpFindAll/checkStdlibUsageRegexpFindAll.go
new file mode 100644 (file)
index 0000000..cfb7fda
--- /dev/null
@@ -0,0 +1,12 @@
+package pkg
+
+import "regexp"
+
+func fn() {
+       var r *regexp.Regexp
+       _ = r.FindAll(nil, 0) //want `calling a FindAll method with n == 0 will return no results`
+}
+
+func fn2() {
+       regexp.MustCompile("foo(").FindAll(nil, 0) // want `calling a FindAll`
+}