I'm pretty sure the following is legal in Java
for (int var1 = 2, var2 = 3; var1 < 10; ++var1) {
System.out.println(var1);
}
But when I try to run it in the Groovy console, I get this error
unexpected token: =
Are multiple variable declarations unsupported by Groovy or is there another reason why this isn't allowed?