mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00

Receiver parameter logic for type annotations should be disabled when parsing lambda formals Reviewed-by: jlahoda
9 lines
251 B
Java
9 lines
251 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8131742
|
|
* @summary Syntactically meaningless code accepted by javac
|
|
* @compile/fail/ref=T8131742.out -XDrawDiagnostics T8131742.java
|
|
*/
|
|
class T8131742 {
|
|
static Runnable r = (__GAR BAGE__.this) -> { };
|
|
}
|