aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat/data/forWithLet.formatted.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlformat/data/forWithLet.formatted.qml')
-rw-r--r--tests/auto/qml/qmlformat/data/forWithLet.formatted.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/data/forWithLet.formatted.qml b/tests/auto/qml/qmlformat/data/forWithLet.formatted.qml
new file mode 100644
index 0000000000..5fecc1d180
--- /dev/null
+++ b/tests/auto/qml/qmlformat/data/forWithLet.formatted.qml
@@ -0,0 +1,8 @@
+import QtQml
+
+QtObject {
+ function foo() {
+ for (let i = 0; i < 5; ++i)
+ console.log(i);
+ }
+}