You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikioh
changed the title
Panic, when passing anonymous field, which is a pointer to a named type
runtime: Panic, when passing anonymous field, which is a pointer to a named type
Jul 10, 2017
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8.3 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
This code works well, while this one panics. Both compiles without errors.
What did you expect to see?
I expected both code samples to work the same way, because the difference is only the way
kPerson
structure is declared.What did you see instead?
Panic when running the second code sample:
The text was updated successfully, but these errors were encountered: