Description
Things like this, while valid Groovy, don't eval in groovysh:
a = [ 1, 2, 3 ]
Pukes up something like:
groovy:000> a = [ groovy:001> 1, groovy:002> 2, groovy:003> 3 ERROR org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, groovysh_parse: 4: unexpected token: 3 @ line 4, column 1. 3 ^ 1 error
Though this works:
a = [ 1, 2, 3, ]