aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-09-17 17:13:18 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-10-01 09:30:16 +0200
commitb6075d7a4b99e484dfe4095ca8e0fdfb26fa6226 (patch)
tree494ff0f3d4c2b19a9ff37de8c831d0969767ce7c /tests/auto/qml/qmllint/data
parent098bf9739839364df93677dae963427fdec5f6c4 (diff)
qmllint: Parse variable declarations from PatternElements
Change-Id: If8b4f5302cc1ee3a4193b354503b304534d7dfd9 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/data')
-rw-r--r--tests/auto/qml/qmllint/data/forLoop.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/forLoop.qml b/tests/auto/qml/qmllint/data/forLoop.qml
new file mode 100644
index 0000000000..be8b12409b
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/forLoop.qml
@@ -0,0 +1,9 @@
+import QtQml 2.0
+
+QtObject {
+ Component.onCompleted: {
+ var stuff = [1, 2, 3, 4]
+ for (var a in stuff)
+ console.log(a);
+ }
+}