aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/ambiguousBinding
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-10-28 14:00:33 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-11-05 09:39:30 +0100
commit963623609d43a6f4087443f6992be14d2bc0900d (patch)
treef289f9f233227bff8f9210a07ff8c16cf64252ac /tests/auto/qml/qqmllanguage/data/ambiguousBinding
parent2c34ce97a31c841da53a0a46c4693af83fadd82e (diff)
Do not resolve containing types of inline components too early
At that point the type doesn't exist yet, because we are just parsing it. By trying to resolve it, we may find other, unrelated, types. Pick-to: 5.15 6.2 Fixes: QTBUG-96796 Change-Id: I0a3137122a6dc969b76bbf4efcfb07b6341fecf2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/ambiguousBinding')
-rw-r--r--tests/auto/qml/qqmllanguage/data/ambiguousBinding/TestCase.qml6
-rw-r--r--tests/auto/qml/qqmllanguage/data/ambiguousBinding/ambiguousContainingType.qml3
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/ambiguousBinding/TestCase.qml b/tests/auto/qml/qqmllanguage/data/ambiguousBinding/TestCase.qml
new file mode 100644
index 0000000000..c76d2b679e
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/ambiguousBinding/TestCase.qml
@@ -0,0 +1,6 @@
+import QtQml 2.15
+import QtTest 1.0
+
+QtObject {
+ component Comp: QtObject {}
+}
diff --git a/tests/auto/qml/qqmllanguage/data/ambiguousBinding/ambiguousContainingType.qml b/tests/auto/qml/qqmllanguage/data/ambiguousBinding/ambiguousContainingType.qml
new file mode 100644
index 0000000000..765dc91fe1
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/ambiguousBinding/ambiguousContainingType.qml
@@ -0,0 +1,3 @@
+import QtQml 2.15
+
+TestCase {}