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

Sometimes calling a closure with () doen't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • parser
    • None

    Description

      a=

      {println 'hello'}(0)
      doesn't print anything

      a={println 'hello'}

      .call(0)
      prints hello

      Note that

      {println 'hello'}

      (0)
      prints hello

      Attachments

        Activity

          People

            Unassigned Unassigned
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: