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
It makes a new struct type using reflect.TypeOf with a single embedded interface field. Then it makes an instance of the type and tries to invoke the method of the interface on that type.
What did you expect to see?
Output:
A.M1 invoked
What did you see instead?
It panicked.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Consider the following code: https://go.dev/play/p/WuzpUlzKido and https://go.dev/play/p/zgAX3grM8rT
It makes a new struct type using
reflect.TypeOf
with a single embedded interface field. Then it makes an instance of the type and tries to invoke the method of the interface on that type.What did you expect to see?
Output:
What did you see instead?
It panicked.
The text was updated successfully, but these errors were encountered: