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

Type checker confuses method calls on closure expressions with closure.call

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.5
    • Fix Version/s: 2.1.6
    • Component/s: Static Type Checker
    • Labels:
      None

      Description

      The following code does not compile because the type checker confuses curry with call:

      @TypeChecked
      void test() {
          def cl = { it }.curry(42)
          def val = cl.call()
          assert val == 42
      }
      

        Attachments

          Activity

            People

            • Assignee:
              melix Cédric Champeau
              Reporter:
              melix Cédric Champeau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: