summaryrefslogtreecommitdiff
path: root/tests/auto/language/testdata/idusagebasebase.qbs
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2018-01-11 14:43:31 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2018-01-17 06:37:46 +0000
commit712c5474b08af11b34c37b545f4e2b7baab27a9f (patch)
treef1794f9951b96f2e10222b80d0bf73fba7ebfb50 /tests/auto/language/testdata/idusagebasebase.qbs
parent45a1fab55d3330bc8b581e68023e4cea8fd5065c (diff)
downloadqbs-712c5474b08af11b34c37b545f4e2b7baab27a9f.tar.gz
Fix id pointer of base items
In the following example the name of the derived product should be "derived", but it was "base". ---BaseProduct.qbs--- Product { id: baseProduct property string foo: "base" name: baseProduct.foo } --derived.qbs-- BaseProduct { foo: "derived" } The id baseProduct still pointed to the Product item originally imported from BaseProduct.qbs. Fix the item pointers in the base id scopes when handling item inheritance. Task-number: QBS-1016 Task-number: QBS-1262 Change-Id: Id11b98aa6780f8bbbda86fda5a7d11a0e006d889 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/language/testdata/idusagebasebase.qbs')
-rw-r--r--tests/auto/language/testdata/idusagebasebase.qbs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/language/testdata/idusagebasebase.qbs b/tests/auto/language/testdata/idusagebasebase.qbs
new file mode 100644
index 000000000..addc6b9fd
--- /dev/null
+++ b/tests/auto/language/testdata/idusagebasebase.qbs
@@ -0,0 +1,5 @@
+Product {
+ id: baseBaseProduct
+ name: "ace of base"
+ property string productNameInBaseOfBase: baseBaseProduct.name
+}