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 2017/01/19 17:05:26 UTC
[jira] [Closed] (GROOVY-3240) priority of .. and . is not correct
[ https://issues.apache.org/jira/browse/GROOVY-3240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun closed GROOVY-3240.
------------------------------
Resolution: Won't Fix
Assignee: Daniel Sun
Fix Version/s: (was: 4.0)
unnecessary breaking change
> priority of .. and . is not correct
> -----------------------------------
>
> Key: GROOVY-3240
> URL: https://issues.apache.org/jira/browse/GROOVY-3240
> Project: Groovy
> Issue Type: Bug
> Components: parser-antlr
> Affects Versions: 1.7-beta-1
> Environment: jdk6u10
> Reporter: Daniel Sun
> Assignee: Daniel Sun
>
> {code}
> (1..3).each {
> println it
> }
> /* yield
> 1
> 2
> 3
> */
> {code}
> But when the range expression is not embraced with brackets
> {code}
> 1..3.each {
> println it
> }
> /* yield
> 3
> */
> {code}
> The issue also exists when we use ..<
> Thanks for your investigating the issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)