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 / unused / testdata / src / elem / elem.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/unused/testdata/src/elem/elem.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/unused/testdata/src/elem/elem.go
new file mode 100644 (file)
index 0000000..24cbf03
--- /dev/null
@@ -0,0 +1,16 @@
+// Test of field usage detection
+
+package pkg
+
+type t15 struct{ f151 int }
+type a2 [1]t15
+
+type t16 struct{}
+type a3 [1][1]t16
+
+func foo() {
+       _ = a2{0: {1}}
+       _ = a3{{{}}}
+}
+
+func init() { foo() }