aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/goodAttachedPropertyAccess.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/goodAttachedPropertyAccess.qml')
-rw-r--r--tests/auto/qml/qmllint/data/goodAttachedPropertyAccess.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/goodAttachedPropertyAccess.qml b/tests/auto/qml/qmllint/data/goodAttachedPropertyAccess.qml
new file mode 100644
index 0000000000..b7f64d9acb
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/goodAttachedPropertyAccess.qml
@@ -0,0 +1,14 @@
+import AttachedProperties 1.0
+QtObject {
+ id: root
+ TestType.object: QtObject {
+ property int progress: 42
+ }
+
+ Component.onCompleted: {
+ // NB: this currently fails as TestType.object is recognized as QtObject
+ // *exactly*, ignoring the QML code above and thus there's no 'progress'
+ // property on TestType.object
+ console.log(TestType.object.progress);
+ }
+}