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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.5
    • 2.1.6
    • Static Type Checker
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: