test/tools/javac/diags/examples/NoSuitableFunctionalIntfInst.java

changeset 1415
01c9d4161882
parent 1348
573ceb23beeb
child 2525
2eb010b6cb22
equal deleted inserted replaced
1414:843d3b191773 1415:01c9d4161882
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 // key: compiler.err.prob.found.req 24 // key: compiler.err.prob.found.req
25 // key: compiler.misc.no.suitable.functional.intf.inst 25 // key: compiler.misc.no.suitable.functional.intf.inst
26 // options: -XDallowLambda
27 26
28 class NoSuitableFunctionalIntfInst { 27 class NoSuitableFunctionalIntfInst {
29 28
30 interface SAM<X extends Number> { 29 interface SAM<X extends Number> {
31 void m(X x); 30 void m(X x);

mercurial