So, as far as I understand it, _ means "there is some precise type
that exists but I can't name" whereas A gives it a name, and Any just
punts on the issue.
In your first example, there is no way to prove that the existential
type of the return value is related to the input value at all. To do
so would require paramterizing the method so you could mention the
same type twice by name.
In the second example, I think the reason there is that inference is
unlikely to want to infer an existential type. From the compiler's
point-of-view, it has an Option and no meaningful information about
its type parameter, so converting an existential to Any makes a
certain amount of sense. But that's just totally a guess about what's
going on there.
-- Erik
> --
> You received this message because you are subscribed to the Google Groups "Typelevel Users & Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
typelevel+...@googlegroups.com.
> To post to this group, send email to
type...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/typelevel/df0ea125-9cc7-412f-ad85-b973e0e4da5b%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.