1
0
mirror of https://github.com/golang/go synced 2024-11-11 23:10:23 -07:00
go/test/fixedbugs/issue5910.dir/a.go
Rémy Oudompheng 49da9a8e44 cmd/gc: fix inlining of unnamed structs with embedded fields.
Update #5910.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/11373044
2013-08-05 22:09:53 +02:00

18 lines
213 B
Go

package a
type Package struct {
name string
}
type Future struct {
result chan struct {
*Package
}
}
func (t *Future) Result() *Package {
result := <-t.result
t.result <- result
return result.Package
}