[leftover] Using _ as a variable
brian.goetz at oracle.com
Fri Apr 14 18:38:34 UTC 2017
Great catch, thanks!
On 4/14/2017 2:37 PM, Remi Forax wrote:
> 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:
> unused lambda, method, or catch formal parameter.
> 1 error
> what about
> as of release 10, '_' can only be used as an unused formal parameter.
More information about the amber-dev