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

[Reg] qmllint: mix up between required properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8, 6.9, 6.10.0 Beta3
    • 6.8.3, 6.9.0
    • QML: Tooling
    • None
    • 41d1137fe (dev), 14f1b4bce (dev)

    Description

      It seems that our required property checker gets confused about scopes sometimes:

      import QtQuick
      
      Item {
          Item {
              component Foo: Item { required property var bla }
      
              Foo { Item { property int bla: 43 } } // does not warn about bla :/
              Foo {} // warns, as expected
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              olivier.decanniere Olivier De Cannière
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are 2 open Gerrit changes