Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-3
-
Fix Version/s: 2.0-rc-1
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
The following code produces a static type checking error:
(0..10).find { int i -> i<5 }
It reports an ambiguous call between two "find" methods from DGM, one defined on Object, the other one defined on Collection.
Fixed by https://github.com/groovy/groovy-core/commit/9943dde06743dac0357906a4c6893376897afc0e