projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.1.1
/
unused
/
testdata
/
src
/
type-dedup
/
dedup.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/unused/testdata/src/type-dedup/dedup.go
b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/unused/testdata/src/type-dedup/dedup.go
new file mode 100644
(file)
index 0000000..
83f3792
--- /dev/null
+++ b/
.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/unused/testdata/src/type-dedup/dedup.go
@@ -0,0
+1,18
@@
+package pkg
+
+type t1 struct { // used
+ a int // used
+ b int // unused
+}
+
+type t2 struct { // used
+ a int // unused
+ b int // used
+}
+
+func Fn() { // used
+ x := t1{}
+ y := t2{}
+ println(x.a)
+ println(y.b)
+}