groovy

for ( ; ite.hasNext() ; ) does not compile

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.5.4
  • Fix Version/s: 1.5.5, 1.6-beta-1
  • Labels:
    None
  • Environment:
    win xp/jdk 6/comman line + eclipse/groovy 1.5.4
  • Number of attachments :
    0

Description

Next does not compile:

for ( ; ite.hasNext() ; ) ... does not compile,
but for ( int i = 0; ite.hasNext() ; ) is compiling. All antoher code is the same.

Issue Links

Activity

Hide
Paul King added a comment -

Duplicate of GROOVY-2523 (though you need either a semi-colon, statement or braces after the for loop brackets).

Show
Paul King added a comment - Duplicate of GROOVY-2523 (though you need either a semi-colon, statement or braces after the for loop brackets).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: