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

Closure parameters can't be of static primative type

    XMLWordPrintableJSON

Details

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

    Description

      The following throws a syntax error

      { int x |
      println x
      }

      this works

      {MyClass x |
      println x
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: