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

STC: zero-parameter closure call with args

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-9
    • Static Type Checker
    • None

    Description

      Consider the following:

      @groovy.transform.TypeChecked
      void test() {
        def c = { -> }
        c("")
      }
      test()
      

      This should be flagged as an error.

      GROOVY-10072

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: