Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Fix Version/s: 1.5.5, 1.6-beta-1
-
Component/s: None
-
Labels:None
-
Environment:jdk6u4
-
Number of attachments :
Description
compiler complains for loop has empty body
for (int i = 0; i < 10; i++) ;
groovy> for (int i = 0; i < 10; i++) ;
Exception thrown: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1: 1: unexpected token: ; @ line 1, column 30.
1 error
Attachments
Issue Links
| This issue is duplicated by: | ||||
| GROOVY-2619 | for ( ; ite.hasNext() ; ) does not compile |
|
|
|
By the way, what's the use of a for loop which does nothing at all???