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)]]
Activity
Cedric Champeau
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
The following code:
{code} [1,2,3].collect { it.toString() } {code} 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)]]}} |
The following code:
{code} [1,2,3].collect { it.toString() } {code} causes the static type checker to fail with a cryptic message : {code}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)]]{code} |
Cedric Champeau
made changes -
| Component/s | Static Type Checker [ 15261 ] |
Cedric Champeau
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |