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

Type checker fails verification of generic types with addAll

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-rc-2
    • 2.0-rc-3
    • Static Type Checker
    • None

    Description

      The following code produces an error:

      List<String> list = ['a','b','c']
      Collection<String> e = list.findAll { it }
      list.addAll(e)
      

      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: