aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllistreference/data/consoleLogSyntheticList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmllistreference/data/consoleLogSyntheticList.qml')
-rw-r--r--tests/auto/qml/qqmllistreference/data/consoleLogSyntheticList.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllistreference/data/consoleLogSyntheticList.qml b/tests/auto/qml/qqmllistreference/data/consoleLogSyntheticList.qml
new file mode 100644
index 0000000000..9d2fd3e0b2
--- /dev/null
+++ b/tests/auto/qml/qqmllistreference/data/consoleLogSyntheticList.qml
@@ -0,0 +1,8 @@
+import QtQml
+
+QtObject {
+ id: self
+
+ function createList() : list<QtObject> { return [self] }
+ Component.onCompleted: console.log(createList())
+}