groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8650) New line between prefix operator and operand
Date Wed, 08 Aug 2018 14:59:00 GMT

    [ 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
(v7.6.3#76005)

Mime
View raw message