Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
18 lines
388 B
Java
18 lines
388 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8003280
|
|
* @summary Add lambda tests
|
|
* Test that lambda conversion is only for SAM interface, not abstract class
|
|
* @compile/fail/ref=AbstractClass_neg.out -XDrawDiagnostics AbstractClass_neg.java
|
|
*/
|
|
|
|
public class AbstractClass_neg {
|
|
|
|
abstract class SAM {
|
|
abstract int m();
|
|
}
|
|
|
|
void test() {
|
|
SAM s = ()-> 6;
|
|
}
|
|
}
|