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

EnumName - KeyName conflicts break enums in the interpreter

XMLWordPrintable

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes