[ 
https://issues.apache.org/jira/browse/GROOVY-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pascal Schumacher resolved GROOVY-2178.
---------------------------------------
       Resolution: Fixed
         Assignee: Pascal Schumacher
    Fix Version/s: 2.4.6

Pull request merged! Thanks! :)

> Shell can not handle multi-line list defs
> -----------------------------------------
>
>                 Key: GROOVY-2178
>                 URL: https://issues.apache.org/jira/browse/GROOVY-2178
>             Project: Groovy
>          Issue Type: Bug
>          Components: Groovysh
>    Affects Versions: 2.1.6, 2.2.0-beta-1
>            Reporter: Jason Dillon
>            Assignee: Pascal Schumacher
>            Priority: Minor
>              Labels: contrib
>             Fix For: 2.4.6
>
>
> Things like this, while valid Groovy, don't eval in groovysh:
> {noformat}
> a = [
>     1,
>     2,
>     3
> ]
> {noformat}
> Pukes up something like:
> {noformat}
> 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
> {noformat}
> Though this works:
> {noformat}
> a = [
>     1,
>     2,
>     3,
> ]
> {noformat}
> :-(



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to