Description
Probably duplicates/is related to GROOVY-7185.
Consider the snippet:
interface Base {} interface Derived extends Base {} interface I { Base[] foo() } interface I2 extends I { Derived[] foo() } class C implements I2 { Derived[] foo() { null } }
Compilation fails with:
The return type of Derived[] foo() in C is incompatible with Base[] in I
Attachments
Issue Links
- duplicates
-
GROOVY-7185 Impossible to override method with generic array of Java class.
- Closed
- relates to
-
GROOVY-7721 Static type checking fails when compiling against a Java8 interface with inherited methods
- Closed
- links to