Details
Description
Consider the following:
@FunctionalInterface interface A<I, O> { O apply(I in) } interface B<X, Y> extends A<X, Y> { } class C implements B<Number, String> { @Override String apply(Number n) { '' } }
Error ""Method 'apply' from class 'C' does not override method from its superclass or interfaces but is annotated with @Override."