Hi gophers,

When we use an interface as a type parameter, does it mean that calls to 
that interface will be replaced with calls to the concrete type?

To demonstrate, consider https://go.dev/play/p/j4N8G_n-3uG .
Will the compiler create a static call to MyDoer.Do instead of a virtual 
call to Doer.Do?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/23125913-6315-4588-b15d-440cb46ad549n%40googlegroups.com.

Reply via email to