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

Daniel Sun updated GROOVY-8606:
-------------------------------
    Description: 
We should {{Statements should be wrapped in a block, e.g. () -> { some 
statements here }}}
{code:java}
Script1.groovy: 1: Statements should be wrapped in a block, e.g. () -> { some 
statements here } @ line 1, column 15.
   def a = () -> assert 1 == 1
                 ^
{code}

> Provide friendly error message for invalid lambda body
> ------------------------------------------------------
>
>                 Key: GROOVY-8606
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8606
>             Project: Groovy
>          Issue Type: Improvement
>          Components: parser-antlr4
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>
> We should {{Statements should be wrapped in a block, e.g. () -> { some 
> statements here }}}
> {code:java}
> Script1.groovy: 1: Statements should be wrapped in a block, e.g. () -> { some 
> statements here } @ line 1, column 15.
>    def a = () -> assert 1 == 1
>                  ^
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to