[leftover] Using _ as a variable
Remi Forax
forax at univ-mlv.fr
Fri Apr 14 18:37:10 UTC 2017
If someone try to use '_' as a variable, javac reports the following error,
which is not very readable.
javac -source 10 LambdaLeftovers.java
LambdaLeftovers.java:10: error: as of release 10, '_' may only be used as an identifier of:
System.out.println(_);
^
unused lambda, method, or catch formal parameter.
1 error
what about
as of release 10, '_' can only be used as an unused formal parameter.
cheers,
RĂ©mi
More information about the amber-dev
mailing list