aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/Cycle1.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-12-09 17:03:25 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-12-12 12:05:28 +0100
commitdd0b82abdc6f9b055a0c0ea0b79176c861176fca (patch)
tree89b86a1158073f89f0a649da6639739b3dd3c9c2 /tests/auto/qml/qmlcppcodegen/data/Cycle1.qml
parent280a1c013cbe83b833ce466e33cffc94daed9bf2 (diff)
QQmlJSImportsVisitor: Break inheritance cycles
If we keep them around, later passes on the same data may run into infinite loops. We cannot fully prevent any further processing of the data because the import can happen from deep within a hierarchy of components and modules. Also, separate the deprecation check from the inheritance check. Pick-to: 6.2 Change-Id: I62ce7cd15be83f60cd72b63ab858632fbc7dea66 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/Cycle1.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/Cycle1.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/Cycle1.qml b/tests/auto/qml/qmlcppcodegen/data/Cycle1.qml
new file mode 100644
index 0000000000..66784f25f4
--- /dev/null
+++ b/tests/auto/qml/qmlcppcodegen/data/Cycle1.qml
@@ -0,0 +1,7 @@
+import QtQml 2.0
+Cycle2 {
+ id: itt
+ QtObject {
+ property var thing: itt
+ }
+}