jdk-24/langtools/test/tools/javac/lambda/LambdaConv29.java
Vicente Romero e5342258d1 8183126: port improvements to analyzers from lvti repo to jdk10
Reviewed-by: mcimadamore, jlahoda
2017-07-05 19:57:47 -07:00

16 lines
302 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8183126
* @summary test for lambda finder
* @compile/fail/ref=LambdaConv29.out -XDrawDiagnostics -Werror -XDfind=lambda LambdaConv29.java
*/
class LambdaConv29 {
interface SAM {
void m();
}
SAM s1 = new SAM() { public void m() {} };
}