Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
I have the following program
class Test { void test() { m((Integer x, Integer y) -> 1); } void m(java.util.Comparator<? extends Object> x) {} }
Actual behavior
test.groovy: 3: [Static type checking] - Expected type java.lang.Object for lambda parameter: x @ line 3, column 8. m((Integer x, Integer y) -> 1); ^ test.groovy: 3: [Static type checking] - Expected type java.lang.Object for lambda parameter: y @ line 3, column 19. m((Integer x, Integer y) -> 1); ^ 2 errors
Expected behaviour
Compile successfully