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

Support closures with no parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-1
    • None
    • None

    Description

      We need to support closures with no parameters for the neat GroovyMarkup syntax.

      e.g.

      builder.root {
      child

      { grandChild("hello") }

      }

      Or as a simple example

      block =

      { someMethod() }

      block.call()

      Can the parser handle this bob?

      Attachments

        Activity

          People

            bob Bob Paulin
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: