Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8023088

Attr post pass widening of ADD ops and other type-ambigious ops doesn't update return type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 9
    • 9
    • core-libs

      This only works because we do the ensureTypeNotUnknown and conservatively bump things to Object more than we need to. When I experiemented with removing it the following fails

      function(a,b) return a + b

      as it creates a conservative number type from leaveAdd.

      This is currently not an issue due to overly conservative Object types

            lagergren Marcus Lagergren
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: