summaryrefslogtreecommitdiff
path: root/test/bugs/bug367.dir/p.go
blob: 4e27d4e00af125024835936bba61b0cdfbf06285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package p

type T struct{ x int }
type S struct{}

func (p *S) get() T {
	return T{0}
}

type I interface {
	get() T
}

func F(i I) {
	_ = i.get()
}