Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Windows
Description
In the following code, the first line results in a call to MyClass.toString, but the second doesn't.
Notice that the only difference is whether parentheses are used.
println(new MyClass(a:1))
println new MyClass(a:2)
class MyClass {
a
String toString() { "a = ${a}" }
}