aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/inlineComponentDuplicateName.qml
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-02-19 13:51:24 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2020-03-16 09:51:22 +0100
commit61413825960870ac9390d0aa0431702431c620f2 (patch)
treea82421e2f091aef1ef228bcc7738db83ed0e5789 /tests/auto/qml/qqmllanguage/data/inlineComponentDuplicateName.qml
parentb5f4b92b36f4957452cb0df7ead79d270bc568b5 (diff)
Inline components: Abort if two IC's with same name exist
Change-Id: Ic52fa388711a76d729ae28678932f4a150da9583 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/inlineComponentDuplicateName.qml')
-rw-r--r--tests/auto/qml/qqmllanguage/data/inlineComponentDuplicateName.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/inlineComponentDuplicateName.qml b/tests/auto/qml/qqmllanguage/data/inlineComponentDuplicateName.qml
new file mode 100644
index 0000000000..12cc79cf14
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/inlineComponentDuplicateName.qml
@@ -0,0 +1,6 @@
+import QtQuick 2.12
+Item
+{
+ component IC: Item {}
+ component IC: Item {}
+}