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

Unexpected behavior when shadowing the default property

    XMLWordPrintable

Details

    Description

      please see the attached demo.

      property string data
      

      will give a runtime error:

      qrc:/PropertyDataTest/Main.qml:11:5: Cannot assign to property of unknown type "QString".
      

      if "data" is invalid as a property name, shall give a proper error message.

      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
              jiu shanheng jiu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes