Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98541

qmlsc generates bad code when comparing numbers to undefined

    XMLWordPrintable

    Details

    • Commits:
      52ca4efeb94a72b0eb2161167dcb2d139ec57a08 (qt/qtdeclarative/dev)

      Description

      As can be seen in the intEnumCompare() test. It fails when interpreted. Qt.red is obviously not a valid enum name, and therefore undefined. Any comparison with undefined should yield false.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes