mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00

Javac should check that types annotated with @FunctionalInterface are indeed functional interfaces Reviewed-by: jjg
2 lines
365 B
Text
2 lines
365 B
Text
LambdaTest2_neg1.java:15:13: compiler.err.cant.apply.symbol: kindname.method, methodQooRoo, QooRoo<java.lang.Integer,java.lang.Integer,java.lang.Void>, @531, kindname.class, LambdaTest2_neg1, (compiler.misc.no.conforming.assignment.exists: (compiler.misc.not.a.functional.intf.1: QooRoo, (compiler.misc.incompatible.abstracts: kindname.interface, QooRoo)))
|
|
1 error
|