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

Cannot call closure like a method in type checked mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0-beta-1, 2.3.0, 2.4.0-rc-1
    • 5.0.0-alpha-11
    • Static Type Checker
    • None

    Description

      Closure closure = ...; closure() doesn't work in type-checked mode. Instead, one has to use closure.call().

      Attachments

        Issue Links

          Activity

            People

              emilles Eric Milles
              pniederw Peter Niederwieser
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: