Code refuses to compile when using comparator with lambda

Remi Forax forax at univ-mlv.fr
Wed Mar 20 05:39:10 PDT 2013


On 03/20/2013 01:04 PM, Maurizio Cimadamore wrote:
> On 20/03/13 11:17, Remi Forax wrote:
>> bitten by the wildcard capture, again
> It's not that this time.
>
> Juts the fact that the two methods are like:
>
> <A> m(Function<? super A, ...>)
>
> and
>
> <B> m(Function<? super B, ...>)
>
> Which means the two descriptors are:
>
> A->...
> B->...
>
> So, does the first descriptor accept the same argument type as the 
> second? No. (Or yes, but after alpha-renaming).
>
> Maurizio

Ok,
appear obvious now,

thanks,
Rémi



More information about the lambda-dev mailing list