diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/methodOnListLookup.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/methodOnListLookup.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/methodOnListLookup.qml b/tests/auto/qml/qmlcppcodegen/data/methodOnListLookup.qml new file mode 100644 index 0000000000..b6b7179438 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/methodOnListLookup.qml @@ -0,0 +1,16 @@ +pragma Strict +import QtQml +import TestTypes + +QtObject { + objectName: people[0].getName() + property list<Person> people: [ + Person { + name: "no one" + } + ] + + function boom() : string { + return people[1].getName() + } +} |