jdk-24/test/langtools/tools/javac/lambda/BadNestedLambda.java
2017-09-12 19:03:39 +02:00

12 lines
317 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8017618
* @summary NullPointerException in RichDiagnosticFormatter for bad input program
* @compile/fail/ref=BadNestedLambda.out -XDrawDiagnostics BadNestedLambda.java
*/
class BadNestedLambda {
void test() {
Runnable add = (int x) -> (int y) -> x + y;
}
}