Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-1
-
Fix Version/s: 2.0-beta-2
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
The following code:
[1,2,3].collect { it.toString() }
causes the static type checker to fail with a cryptic message :
Reference to method is ambiguous. Cannot choose between [MethodNode@481404130[java.util.List collect(groovy.lang.Closure)], MethodNode@1289411108[java.util.List collect(groovy.lang.Closure)]]