We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version go1.5.1 linux/amd64 | CentOS 7.0x64 go version go1.5.1 windows/amd64 | Window 10x64
package main import ( "fmt" ) type StructIntf interface { Get() string } type Struct0 struct{} func (self *Struct0) Get() string { return "x1111" } type Struct1 struct{ Struct0 } type Struct2 struct{ Struct1 } type Struct3 struct{ Struct2 } type Struct4 struct{ Struct3 } type Struct5 struct{ Struct4 } type Struct6 struct{ Struct5 } type Struct7 struct{ Struct6 } type Struct8 struct{ Struct7 } type Struct9 struct{ Struct8 } func main() { // var intf StructIntf = new(Struct0) // OK // var intf StructIntf = new(Struct8) // OK // fmt.Println(new(Struct9).Get()) // OK // panic: interface conversion: *main.Struct9 is not main.StructIntf: missing method Get var intf StructIntf = new(Struct9) // embedded struct level limit ??? fmt.Println(intf) }
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/19932 mentions this issue.
Sorry, something went wrong.
49dad0f
No branches or pull requests
go version go1.5.1 linux/amd64 | CentOS 7.0x64
go version go1.5.1 windows/amd64 | Window 10x64
The text was updated successfully, but these errors were encountered: