Closure conversion vs silly type parameter

Neal Gafter neal at gafter.com
Sun Jul 6 23:21:23 PDT 2008


Mark-

This has been fixed.

Regards,
Neal

On Wed, May 14, 2008 at 1:18 AM, Mark Mahieu <mark at twistedbanana.demon.co.uk>
wrote:

> Thanks Neal.  I also ran into this:
>
>
> public class WrongFoundType {
>
>     static <T extends {=> void}> void foo(T block) {
>         block = { ==> };
>     }
> }
>
>
> Attempting to compile it yields an 'incompatible types' error as expected,
> but the 'found' type substituted into the error message is incorrect (should
> be '{ ==> void }' not '{ => void }'):
>
>
> WrongFoundType.java:4: incompatible types
> found   : { => void}
> required: T
>         block = { ==> };
>                   ^
> 1 error
>
>
> Regards,
>
> Mark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080706/2152fc27/attachment.html 


More information about the closures-dev mailing list