jdk-24/langtools/test/tools/javac/lambda/T8041704/ErrorMessageTest.java

13 lines
345 B
Java
Raw Normal View History

/**
* @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() {} }); });
}
}