Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.2
-
None
Description
The following code compiles under Groovy 2.2.1, but not under 2.2.2
@groovy.transform.CompileStatic public class Test<T> { public Test(Class<T> p1) { } static <X> Test<X> create(Class<X> c) { new Test<X>(c) } }
Works in both if we strip the generics at the call site:
package unlogger.dsl.core @groovy.transform.TypeChecked public class Test<T> { public Test(Class<T> p1) { } static <X> Test<X> create(Class<X> c) { new Test<X>(c as Class) } }