You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2018/05/25 10:04:00 UTC

[jira] [Updated] (GROOVY-8606) Provide friendly error message for invalid lambda body

     [ 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)