Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
groovyc does not emit errors for misuse of @FunctionalInterface. At minimum an interface with 0 or 2+ abstract methods should be an error. Bonus points for supporting traits as well – a trait compiles to an interface. And using the annotation on a class, enum or @interface is improper as well.
@FunctionalInterface
interface I {
}