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

closure syntax following function call syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-6, 1.0-beta-7, 1.0-beta-8, 1.0-beta-9, 1.0-beta-10, 1.0-JSR-1, 1.0-JSR-2, 1.0-JSR-3
    • 1.0-JSR-4
    • parser-antlr2
    • None

    Description

      This failed:

      i = new Integer(0) // no ;

      { i = 2 }() // or }

      .call()

      this worked:

      i = new Integer(0); // ;
      {
      i = 2
      }()

      BTW, I love to use

      {...}

      () whenever I can.

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            bingran Bing Ran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: