groovy
  1. groovy
  2. GROOVY-133

Closure parameters can't be of static primative type

    Details

    • Type: Bug Bug
    • Status: Closed 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
    • Number of attachments :
      0

      Description

      The following throws a syntax error

      { int x |
      println x
      }

      this works

      {MyClass x |
      println x
      }

        Activity

        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 -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Chris Poirier made changes -
        Assignee Chris Poirier [ cpoirier ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: