aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/aliasToRequiredPropertyIsNotRequiredItself.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/aliasToRequiredPropertyIsNotRequiredItself.qml')
-rw-r--r--tests/auto/qml/qmllint/data/aliasToRequiredPropertyIsNotRequiredItself.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/aliasToRequiredPropertyIsNotRequiredItself.qml b/tests/auto/qml/qmllint/data/aliasToRequiredPropertyIsNotRequiredItself.qml
new file mode 100644
index 0000000000..247758a7b3
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/aliasToRequiredPropertyIsNotRequiredItself.qml
@@ -0,0 +1,30 @@
+import QtQml
+
+QtObject {
+ // Not at the root level
+ property QtObject o1: QtObject {
+ component Comp1 : QtObject {
+ required property int i1
+ }
+
+ property Comp1 c1: Comp1 {
+ id: compId1
+ i1: 1
+ }
+
+ property alias aliasToRequired1: compId1.i1
+ }
+
+
+ // At the root level
+ component Comp2 : QtObject {
+ required property int i2
+ }
+
+ property Comp2 c2: Comp2 {
+ id: compId2
+ i2: 2
+ }
+
+ property alias aliasToRequired2: compId2.i2
+}