Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2340

incorrect error reported in object list initializer

    XMLWordPrintable

Details

    • 2fff849ae12e3cdaa1fcb28817c72bc95a6d44e6

    Description

      The following snippet incorrectly shows an error on the marked line.

      // MyObject.qml
      import Qt 4.7
      QtObject {
         property string name
      }
      
      // dummydata/myModel.qml
      import Qt 4.7
      QtObject {
         property list<QtObject> dataObjects:[
             MyObject {
                 name: "Dummy Peter" // error: 'name' is not a vaild property name
             }
         ]
      }
      

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            ckamm Christian Kamm
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes