Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The following example fails:
@groovy.transform.TypeChecked class Test { static void test() { def range = 1..10 int i = range.fromInt } } Test.test()
With:
[Static type checking] - Cannot assign value of type java.lang.Object to variable of type int
Although using the getter method directly getFromInt() and the type checker is happy.