2012-11-17 19:01:03 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
2017-07-06 02:57:47 +00:00
|
|
|
* @bug 8003280 8064365 8183126
|
2012-11-17 19:01:03 +00:00
|
|
|
* @summary Add lambda tests
|
|
|
|
* simple test for lambda candidate check
|
2017-07-06 02:57:47 +00:00
|
|
|
* @compile/fail/ref=LambdaConv18.out -XDrawDiagnostics LambdaConv18.java
|
2012-11-17 19:01:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class LambdaConv18 {
|
|
|
|
|
|
|
|
interface NonSAM {
|
|
|
|
void m1();
|
|
|
|
void m2();
|
|
|
|
}
|
|
|
|
|
2017-07-06 02:57:47 +00:00
|
|
|
NonSAM s1 = new NonSAM() { public void m1() {}
|
2012-11-17 19:01:03 +00:00
|
|
|
public void m2() {} };
|
2017-07-06 02:57:47 +00:00
|
|
|
NonExistent s2 = new NonExistent() { public void m() {} };
|
2012-11-17 19:01:03 +00:00
|
|
|
}
|