jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-133

Closure parameters can't be of static primative type

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

Description

The following throws a syntax error

{ int x |
println x
}

this works

{MyClass x |
println x
}

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
james strachan added a comment - 06/Mar/04 10:40 AM

Another parser issue - this should be fixed with the new | syntax right?

Show
james strachan added a comment - 06/Mar/04 10:40 AM Another parser issue - this should be fixed with the new | syntax right?
Hide
Permalink
Chris Poirier added a comment - 07/Mar/04 1:03 AM

This seems to be fixed. I think it's been fixed for a while, actually. The first bunch of changes I made to the parser fixed a CST ordering discrepancy between typing for method parameters and typing for closure parameters, which I think was the real cause of this problem.

Show
Chris Poirier added a comment - 07/Mar/04 1:03 AM This seems to be fixed. I think it's been fixed for a while, actually. The first bunch of changes I made to the parser fixed a CST ordering discrepancy between typing for method parameters and typing for closure parameters, which I think was the real cause of this problem.

People

  • Assignee:
    Unassigned
    Reporter:
    John Wilson
Vote (0)
Watch (0)

Dates

  • Created:
    15/Jan/04 9:21 AM
    Updated:
    26/Sep/07 8:43 PM
    Resolved:
    07/Mar/04 1:03 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.