Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In the following example:
['a','bb','ccc'].inject(0) { int acc, String str -> acc += str.length(); acc }
The type checker thinks the method to be called is DGM#inject(Object,Object,Closure) instead of DGM#inject(Collection,Object,Closure)
Attachments
Issue Links
- relates to
-
GROOVY-7934 Type inference breaks for Collection.inject
- Open
-
GROOVY-8788 Inconsistency in extension method selection with @CompileStatic
- Closed