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

Support lambda expression as named value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-9
    • parser-antlr4
    • None

    Description

      The following example fails to parse:

      m(name: p -> p.length())
      

      Replacing "p -> p.length()" with "{ p -> p.length() }" parses as expected.

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: