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

qmllint gets type of root id wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.10
    • 6.10
    • QML: Compiler, QML: Tooling
    • None

    Description

       

      Consider the following code:

      // Referential.qml
      import QtQuick
      Rectangle {
          id: self
          property Referential ref: self
      }
      

      Running qmllint on it yields

      Warning: Referential.qml:5:31: Cannot assign binding of type Rectangle to Referential 

      [incompatible-type]

       

      That's obviously wrong; qmllint picks up the base type instead of the elements actual type.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes