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

wrong resolution for hidden generics

    XMLWordPrintableJSON

Details

    Description

      class Blah {}
      class MyList extends LinkedList<Object> {}
      List<Blah> o = new MyList()
      

      should not pass the type checker, but

      class Blah {}
      class MyList extends LinkedList<Object> {}
      List<Object> o = new MyList()
      

      should. Currently both pass.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: