mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8211148: var in implicit lambdas shouldn't be accepted for source < 11
Reviewed-by: mcimadamore
This commit is contained in:
parent
73a6313038
commit
2589e9733e
8 changed files with 80 additions and 27 deletions
|
@ -3,6 +3,7 @@
|
|||
* @bug 8198512 8199327
|
||||
* @summary compiler support for local-variable syntax for lambda parameters
|
||||
* @compile/fail/ref=VarInImplicitLambdaNegTest01.out -XDrawDiagnostics VarInImplicitLambdaNegTest01.java
|
||||
* @compile/fail/ref=VarInImplicitLambdaNegTest01_source10.out -source 10 -XDrawDiagnostics VarInImplicitLambdaNegTest01.java
|
||||
*/
|
||||
|
||||
import java.util.function.*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue