[ 
https://issues.apache.org/jira/browse/GROOVY-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14995295#comment-14995295
 ] 

ASF GitHub Bot commented on GROOVY-2178:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-groovy/pull/181


> 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
>            Priority: Minor
>              Labels: contrib
>
> 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