groovy
  1. groovy
  2. GROOVY-3240

priority of .. and . is not correct

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7-beta-1
    • Fix Version/s: 4.0
    • Component/s: parser-antlr
    • Labels:
      None
    • Environment:
      jdk6u10
    • Number of attachments :
      0

      Description

      (1..3).each {
          println it
      }
      /* yield
      1
      2
      3
      */
      

      But when the range expression is not embraced with brackets

      1..3.each {
          println it
      }
      /* yield
      3
      */
      

      The issue also exists when we use ..<

      Thanks for your investigating the issue.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel.Sun
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: