Forum Discussion
M_McDonald
15 years agoSuper Contributor
Move the "+" to the first line.
Groovy is interpreting this as 2 separate lines, thus it is trying to apply the "+" (positive operator) to a
String on the second line and this doesn't work. Putting the operator at the end of the first line tells
it that the line is not finished.
Groovy is interpreting this as 2 separate lines, thus it is trying to apply the "+" (positive operator) to a
String on the second line and this doesn't work. Putting the operator at the end of the first line tells
it that the line is not finished.
Related Content
Recent Discussions
- 15 years ago