[jira] [Commented] (GROOVY-8650) New line between prefix operator and operand

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (GROOVY-8650) New line between prefix operator and operand

JIRA jira@apache.org

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

Paul King commented on GROOVY-8650:

It is still on my todo list to write up some of the basic assumptions the parser has had around newlines. Based on that (and subject to feedback) we might end up fixing this for consistency of rules even if this particular case is ugly.

> New line between prefix operator and operand
> --------------------------------------------
>                 Key: GROOVY-8650
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8650
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser-antlr4
>    Affects Versions: 3.0.0-alpha-2
>            Reporter: Daniil Ovchinnikov
>            Assignee: Daniel Sun
>            Priority: Major
> The following code is parsed properly in previous versions, but fails in 3.0:
> {code:java}
> def c = --
> 1
> println c // 0{code}

This message was sent by Atlassian JIRA