In groovy 2.5.*, the following code will fail to compile:
def TEST(String name) {
println name
}
TEST 'hello'
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
ideaGroovyConsole.groovy: 108: unexpected token: hello @ line 108, column 6.
TEST 'hello'
^
1 error
How to solve this problem?
It works in groovy 3.0.*, but I can't switch to groovy 3.0 yet.
