Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I have the following program
class Main { static final void test(java.util.List<Integer> p) { m(1, p); } static <T> void m(Integer x, java.util.List<T>... items) { } }
Actual behavior
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: test.groovy: 3: [Static type checking] - Cannot find matching method Main#m(int, java.util.List<java.lang.Integer>). Please check if the declared type is correct and if the method exists. @ line 3, column 5. m(1, p); ^ 1 error
Expected behavior
Compile successfully
Tested against master (commit: a4e0d6de9cc2d8ecb48b48df501e63ec1735d837)
Attachments
Issue Links
- is related to
-
GROOVY-8090 Incorrectly processing method-level type generics information
- Closed