Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.0
-
None
-
None
Description
I expect the following example to work:
@TupleConstructor @ToString class Point { int x, y } def p1 = new Point(1, 2) def p2 = new Point(1, 1) { int getY() { 2 } } assert p1.toString() == 'Point(1, 2)' assert p2.toString() == 'Point(1, 2)'