aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/coercetovoid.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/coercetovoid.qml')
-rw-r--r--tests/auto/qml/qmllint/data/coercetovoid.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/coercetovoid.qml b/tests/auto/qml/qmllint/data/coercetovoid.qml
new file mode 100644
index 0000000000..f1b593ea3a
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/coercetovoid.qml
@@ -0,0 +1,8 @@
+pragma Strict
+import QtQml
+
+QtObject {
+ function touchThisAndReturnSomething(x: int) {
+ return x + 1;
+ }
+}