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 / anonymous / anonymous.go
1 package pkg
2
3 import "fmt"
4
5 type Node interface {
6         position() int
7 }
8
9 type noder struct{}
10
11 func (noder) position() int { panic("unreachable") }
12
13 func Fn() {
14         nodes := []Node{struct {
15                 noder
16         }{}}
17         fmt.Println(nodes)
18 }