summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qmlcppcodegen/data/construct.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/construct.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/construct.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/construct.qml b/tests/auto/qml/qmlcppcodegen/data/construct.qml
new file mode 100644
index 0000000000..19d3322992
--- /dev/null
+++ b/tests/auto/qml/qmlcppcodegen/data/construct.qml
@@ -0,0 +1,12 @@
+import QtQml
+
+QtObject {
+ property var foo: new Error("bar")
+ property int aaa: 12
+
+ function ouch() {
+ aaa = 13;
+ throw new Error("ouch")
+ aaa = 25;
+ }
+}