Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I have the following program
class A<T1, T2> {} class B<T1 extends Number, T2 extends A<C, ? extends T1>> { T2 f; B(T2 f) { this.f = f; } } class C {}
Actual behavior
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: test.groovy: 7: [Static type checking] - Cannot assign value of type A<C, ? extends java.lang.Number<T1 extends java.lang.Number>> to variable of type T2 @ line 7, column 15. this.f = f; ^ 1 error
Expected behavior
Compile successfully
Tested against master