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

Static type checker cannot choose between two covariant return type methods

    XMLWordPrintableJSON

Details

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

    Description

      The following code fails because getMethods returns two covariant return type methods:

      StringBuffer sb = new StringBuffer()
      sb.append('string')
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: