mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
11 lines
317 B
Java
11 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;
|
|
}
|
|
}
|