aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/invisibleTypes.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-04-22 13:36:23 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-04-28 14:16:28 +0200
commitb3e8a32e716dc25d1f0f60d610b5bda01d79c078 (patch)
treef06048f61cd32fbc4aa96fd5b1137c9d65d89f4f /tests/auto/qml/qmlcppcodegen/data/invisibleTypes.qml
parent2fd1388366b059c56a5a4d5eda5facf6d75a2569 (diff)
QmlCompile: Double-check types before generating lookups
In case of incomplete type information, we can get QJSValue as output type where we expect QObject*. We cannot generate any sensible code for that. Change-Id: If817de7dca3b5b0b58aff92dec2dd12a7c10d250 Fixes: QTBUG-102554 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 4ab857c37b73d9665467786bab25e2362038f3aa)
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/invisibleTypes.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/invisibleTypes.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/invisibleTypes.qml b/tests/auto/qml/qmlcppcodegen/data/invisibleTypes.qml
new file mode 100644
index 0000000000..372ceb27de
--- /dev/null
+++ b/tests/auto/qml/qmlcppcodegen/data/invisibleTypes.qml
@@ -0,0 +1,8 @@
+import QtQml
+import TestTypes
+
+QtObject {
+ property var singleton: SingletonModel
+ property var attached: AttachedObject
+ property var metaobject: DerivedFromInvisible
+}