Slightly incorrect diagnostic

Mark Mahieu mark at
Thu May 15 14:05:12 PDT 2008

I've found another example where the compiler gives a slightly  
misleading compilation error:

public class WrongType {
     public static void main(String[] args) {

The message refers to an unrestricted type, yet I only have a  
restricted closure: invoke() in { ==> void} cannot be applied to (int)
1 error



More information about the closures-dev mailing list