-
Bug
-
Resolution: Fixed
-
P2
-
None
-
Verified
This should be an error (the lambda expression is not compatible with the target type):
interface I { <T> void m(); }
I i = () -> System.out.println("hi");
But there is no rule in 15.27.3 to prevent it.
javac reports an error.
interface I { <T> void m(); }
I i = () -> System.out.println("hi");
But there is no rule in 15.27.3 to prevent it.
javac reports an error.