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 / stylecheck / testdata / src / CheckIncDec.disabled / CheckIncDec.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckIncDec.disabled/CheckIncDec.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckIncDec.disabled/CheckIncDec.go
new file mode 100644 (file)
index 0000000..c8aa51d
--- /dev/null
@@ -0,0 +1,13 @@
+// Package pkg ...
+package pkg
+
+func fn() {
+       var x int
+       x--
+       x++
+       x += 1 // want `should replace x \+= 1 with x\+\+`
+       x -= 1 // want `should replace x -= 1 with x--`
+       x /= 1
+       x += 2
+       x -= 2
+}