Maurizio Cimadamore 7baee75969 8131742: Syntactically meaningless code accepted by javac
Receiver parameter logic for type annotations should be disabled when parsing lambda formals

Reviewed-by: jlahoda
2015-07-30 13:24:35 +01:00

10 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) -> { };
}