Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
all
Description
When parentheses are omitted from a constructor call, the parser gives an UnexpectedTokenException. Additionally, if the comma is omitted it gives an IndexOutOfBoundsException.
Here's an example.
class Car {
String make
String model
Car() {}
Car(String make, String model)
{ this.make = make this.model = model }}
c = new Car 'Honda','Odyssey'
println c.dump()
Attachments
Issue Links
- is depended upon by
-
GROOVY-762 implement syntax improvements
- Closed