Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3240

priority of .. and . is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.7-beta-1
    • None
    • parser-antlr2
    • None
    • jdk6u10

    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.

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            daniel_sun Daniel Sun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: