On Thu, Jun 16, 2016 at 1:56 PM, ccahoon <chris.cah...@gmail.com> wrote:
> I haven't fully grasped the type inference/promotion/demotion rules yet,
> particularly with respect to having function arguments & return values with
> interface types.
>
> Here is a distilled example that I think illustrates some confusion I have:
> https://play.golang.org/p/-1YXdK1R0T
>
> Any clues on why (commented) BrokenExampleFinder doesn't work? Is there
> something that I can do to make it work without wrapping it in a function?

https://golang.org/doc/faq#covariant_types

Ian

-- 
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