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 / CheckDefaultCaseOrder / CheckDefaultCaseOrder.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/CheckDefaultCaseOrder/CheckDefaultCaseOrder.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckDefaultCaseOrder/CheckDefaultCaseOrder.go
new file mode 100644 (file)
index 0000000..28c32eb
--- /dev/null
@@ -0,0 +1,36 @@
+// Package pkg ...
+package pkg
+
+func fn(x int) {
+       switch x {
+       }
+       switch x {
+       case 1:
+       }
+
+       switch x {
+       case 1:
+       case 2:
+       case 3:
+       }
+
+       switch x {
+       default:
+       }
+
+       switch x {
+       default:
+       case 1:
+       }
+
+       switch x {
+       case 1:
+       default:
+       }
+
+       switch x {
+       case 1:
+       default: // want `default case should be first or last in switch statement`
+       case 2:
+       }
+}