Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1-beta-2
-
None
-
None
Description
I would like to write
for (v : collection) {
System.out.println(v);
}
However, Groovy complains when I do this
Java-style for-each statement requires a type declaration
It seems to me that there's no reason to require this restriction, granting that there are probably more natural Groovy idioms for doing this kind of thing.