Issue Details (XML | Word | Printable)

Key: GROOVY-1201
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Graeme Rocher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Unsupport Classic for loop now reports strange error message

Created: 05/Jan/06 04:24 AM   Updated: 01/Jul/07 11:51 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified


 Description  « Hide
Using the classic for loop from java like:

for(int i = 0; i < 60;i++) {
println i
}

produces the error:

Script1.groovy: 67: Unexpected node type: TYPE found when expecting type: an identifier at line: 67 column: 32. File: Script1.groovy @ line 67, column 32.
1 Error

Which is not very helpful for those who don't know it is not supported.. a nice error message at a minium would be good.. ideally it should dynamically inspect the AST and suggest what you should use



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.