Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.2
-
None
-
Maven 3 with groovy-eclipse-compiler 2.8.0-01
OpenJDK 1.7.0_51
Description
@TypeChecked class Issue2 { public void issue() { transform(new Function<String, String>() { String apply(String input) { return "ok" } }) } public <I, O> void transform(Function<? super I, ? extends O> function) { } }
Compiler fails with the following error:
TypeChecker/src/main/java/org/issues/Issue2.groovy: 14 Groovy:[Static type checking] - Cannot find matching method org.issues.Issue2#transform(org.issues.Issue2$1). Please check if the declared type is right and if the method exists.
See attachment (org.issues.Issue2)