Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta-2
-
None
-
None
Description
Groovy Strings don't support +=
For example, this doesn't work:
a = "dog"
b = "${a}"
b += " cat"
Instead, toString() must be called on the GString first:
a = "dog"
b = "${a}".toString()
b += " cat"