jdk-24/test/langtools/tools/javac/lambda/T8041704/ErrorMessageTest.java
2017-09-12 19:03:39 +02: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() {} }); });
}
}