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

EnumName - KeyName conflicts break enums in the interpreter

    XMLWordPrintable

Details

    Description

      import QtQuick
      
      Item {
          enum E { A, B, C, D, E }
          Component.onCompleted: {
              console.log(Main.E.D) -> Engine: undefined, Compiler: 3
          }
      }

      Removing key entry E from the enum, or renaming the enum fixes the issue.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              olivier.decanniere Olivier De Cannière
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes