You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/08/08 14:59:00 UTC
[jira] [Commented] (GROOVY-8650) New line between prefix operator
and operand
[ 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)