Using your code as example:

> func (tl *TextList) Add(type T Stringer) (item T ) {
>     tl.Data=append(tl.Data,item.String())
> }

Now if we have:

package pkg //probably written by a user you don't know that uses your code
type A struct{}
func (A) String() string { return "" }
type IA interface { Add(A) }

Does a variable of type  `TextList` implements `pkg.IA` or not?

-- 
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/a972ce0c-acc1-4d6d-bf97-33a022742380o%40googlegroups.com.

Reply via email to