Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.3.0, 2.4.0-beta-3
-
None
Description
class A {} @groovy.transform.CompileStatic static <C> void foo() { new A<C>() }
This code should not compile, since A has no generics parameter, but the "new"-call does use one. Most probably all 2.x versions are affected
Attachments
Issue Links
- duplicates
-
GROOVY-7865 Better error message in the presence of Generics arity errors
- Closed