jdk-24/langtools/test/tools/javac/lambda/T8041704/ErrorMessageTest.java
2014-05-27 18:57:44 +01:00

13 lines
345 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8041704
* @summary wrong error message when mixing lambda expression and inner class
* @compile/fail/ref=ErrorMessageTest.out -XDrawDiagnostics ErrorMessageTest.java
*/
public class ErrorMessageTest {
void f(Runnable r) {
f(() -> { f(new MISSING() { public void run() {} }); });
}
}