Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-rc-1
-
None
Description
The following code when annotated with @TypeChecked:
List<Integer> foo = [1, 2, 3] Integer bar = foo.find { it == 2 } ^
Will not compile with the error message:
Groovy:[Static type checking] - Cannot assign value of type java.lang.Object
to variable of type java.lang.Integer on the second line.