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

qmllint not detect alias cycle for childs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.12
    • 6.9.1
    • QML: Tooling
    • None

      For such code:

      import QtQuick 2.15
      
      Item {
          id: mainItem
          property alias childAntialiasing: child.antialiasing
          Item {
              id: child
              antialiasing: mainItem.childAntialiasing
          }
      }
      

      qmllint reports nothing. It would be nice if it warn about such cycles.
      I found 3 places in my code base like this, created by series of small changes in code base,
      that as result introduce such strange construction.

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

            qtqmlteam Qt Qml Team User
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes