问题:
Groovy scripts raises an error: Groovy脚本引发错误:
def a = "test"
+ "test"
+ "test"
Error: 错误:
No signature of method: java.lang.String.positive() is
applicable for argument types: () values: []
While this script works fine: 尽管此脚本可以正常工作:
def a = new String(
"test"
+ "test"
+ "test"
)
Why? 为什么?