Error highlighting in lambdas inside lambdas

Lambda support looks very nice :)

// The lines below compiles and runs but IDEA marks an error
        System.out.println(doIt1(1,   x -> doIt0(() -> x + 2))); // Idea markes error when parameter is a second parameterless lambda defined in a lambda
        System.out.println(doIt1(1,   x -> doIt0(() -> 2))); // Here too
See the attached file.



Attachment(s):
InnerLambdasGivesError.java.zip

Please sign in to leave a comment.