.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / staticcheck / testdata / src / CheckMissingEnumTypesInDeclaration / CheckMissingEnumTypesInDeclaration.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/CheckMissingEnumTypesInDeclaration/CheckMissingEnumTypesInDeclaration.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/CheckMissingEnumTypesInDeclaration/CheckMissingEnumTypesInDeclaration.go.golden
new file mode 100644 (file)
index 0000000..3ed508f
--- /dev/null
@@ -0,0 +1,86 @@
+package pkg
+
+const c1 int = 0
+const c2 = 0
+
+const (
+       c3 int = iota
+       c4
+       c5
+)
+
+const (
+       c6 int = 1 // want `only the first constant in this group has an explicit type`
+       c7 int = 2 // comment for testing https://github.com/dominikh/go-tools/issues/866
+       c8 int = 3
+)
+
+const (
+       c9  int = 1
+       c10     = 2
+       c11     = 3
+       c12 int = 4
+)
+
+const (
+       c13     = 1
+       c14 int = 2
+       c15 int = 3
+       c16 int = 4
+)
+
+const (
+       c17     = 1
+       c18 int = 2
+       c19     = 3
+       c20 int = 4
+)
+
+const (
+       c21 int = 1
+
+       c22 = 2
+)
+
+const (
+       c23 int = 1
+       c24 int = 2
+
+       c25 string = "" // want `only the first constant in this group has an explicit type`
+       c26 string = ""
+
+       c27     = 1
+       c28 int = 2
+
+       c29 int = 1
+       c30     = 2
+       c31 int = 2
+
+       c32 string = "" // want `only the first constant in this group has an explicit type`
+       c33 string = ""
+)
+
+const (
+       c34 int = 1 // want `only the first constant in this group has an explicit type`
+       c35 int = 2
+
+       c36 int = 2
+)
+
+const (
+       c37 int = 1
+       c38     = "2"
+)
+
+const (
+       c39 int8 = 1.0 // want `only the first constant in this group has an explicit type`
+       c40 int8 = 'a'
+       c41 int8 = 3
+)
+
+type String string
+
+const (
+       c42 String = "" // want `only the first constant in this group has an explicit type`
+       c43 String = ""
+)