Groovy
  1. Groovy
  2. GROOVY-133

Closure parameters can't be of static primative type

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-3
    • Fix Version/s: 1.0-beta-4
    • Component/s: parser
    • Labels:
      None

      Description

      The following throws a syntax error

      { int x |
      println x
      }

      this works

      {MyClass x |
      println x
      }

        Activity

        John Wilson created issue -
        james strachan made changes -
        Field Original Value New Value
        Fix Version/s 1.0-beta-4 [ 10243 ]
        james strachan made changes -
        Assignee bob mcwhirter [ bob ] Chris Poirier [ cpoirier ]
        Chris Poirier made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Chris Poirier made changes -
        Assignee Chris Poirier [ cpoirier ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12729290 ] Default workflow, editable Closed status [ 12741199 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12967825 ] Default workflow, editable Closed status [ 12975564 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            John Wilson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development