mirror of
https://github.com/golang/go
synced 2024-11-22 03:24:41 -07:00
5f172fadbe
The spec says that all methods are inherited from an anonymous field. There is no exception for non-exported methods. This is related to issue 1536. R=rsc CC=golang-dev https://golang.org/cl/5012043
13 lines
89 B
Go
13 lines
89 B
Go
package main
|
|
|
|
import (
|
|
"./p"
|
|
)
|
|
|
|
type T struct{ *p.S }
|
|
|
|
func main() {
|
|
var t T
|
|
p.F(t)
|
|
}
|