I don't know why I'm getting this interface conversion error or what to do 
about it.

I define an interface, node, and a struct, basicNode that implements 
behavior common to all nodes.  I also define ActionNode and TestNode which 
both anonymously embed basicNode.

basicNode implements OutputsTo which links the receiver with the node 
passed as argument.

I get the runtime error

panic: interface conversion: main.node is *main.ActionNode, not *main.basicNode




Here's a playground link that exhibits my problem:

https://play.golang.org/p/ZeIkJSd7qB0

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to