aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/typedArray.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/typedArray.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/typedArray.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/typedArray.qml b/tests/auto/qml/qmlcppcodegen/data/typedArray.qml
index f9a40f5584..8d94d0832f 100644
--- a/tests/auto/qml/qmlcppcodegen/data/typedArray.qml
+++ b/tests/auto/qml/qmlcppcodegen/data/typedArray.qml
@@ -10,8 +10,17 @@ QtObject {
property list<date> values4: [aDate, aDate, aDate]
property list<real> values5: [1, 2, 3.4, "30", undefined, null]
property list<QtObject> values6: [self, self, self]
+ property string values7: "abcdef"
property int inIntList: values3[1]
property date inDateList: values4[2]
property real inRealList: values5[3]
+ property string inCharList: values7[5]
+
+ function stringAt10(s: string): int {
+ if (!s[10])
+ return 10;
+ else
+ return 20;
+ }
}