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

33 lines
628 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8181911
* @summary Verify that the analyzer does not affect ordinary compilation.
* @compile/ref=LambdaConv28.out -XDrawDiagnostics -XDfind=lambda LambdaConv28.java
*/
class LambdaConv28 {
public void test(A a) {
test(()-> {
return new I() {
public <T> void t() {
}
};
});
test(new A() {
public I get() {
return null;
}
});
}
public interface I {
public <T> void t();
}
public interface A {
public I get();
}
}