Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.6.0
Description
There are two inconsistency in list property of QML.
1. trailing comma is only allowed for id list
2. mixing id and declaration in list is not allowed.
import QtQuick 2 Item { Item { id: item1 } Item { id: item2 } property list<Item> list2: [ item1, item2, // OK, trailing comma is allowed ] property list<Item> list1: [ Item {}, Item {}, // Error: trailing comma is not allowed here ] property list<Item> list3: [ Item {}, item1 // Error: mixing id and item declaration is not allowed ] }
Attachments
Issue Links
- depends on
-
QTBUG-118053 Create a failure tolerant QML parser
- Open