Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Chris your changes to the parser will probably fix this. Found by Ted Leung
l = ["Ted", "Fred", "Jed", "Ned"]
println l
int length = 3
List r = l.findAll
println r.size()
List r = r.each
Executing it gives:
Caught: org.codehaus.groovy.syntax.parser.UnexpectedTokenException: expected <identifier>; found 'int' at 4:1
org.codehaus.groovy.syntax.parser.UnexpectedTokenException: expected <identifier>; found 'int' at 4:1
at org.codehaus.groovy.syntax.parser.Parser.throwExpected(Parser.java:3045)
at org.codehaus.groovy.syntax.parser.Parser.nameReference(Parser.java:998)
at org.codehaus.groovy.syntax.parser.Parser.primaryExpression(Parser.java:2471)
at org.codehaus.groovy.syntax.parser.Parser.postfixExpression(Parser.java:2390)