[leftover] Using _ as a variable
vicente.romero at oracle.com
Fri Apr 14 19:09:50 UTC 2017
Thanks for the report. I have updated the error message,
On 04/14/2017 02:38 PM, Brian Goetz wrote:
> 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
>> 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