Details
Description
BaseProduct.qbs
import qbs 1.0 Product { id: baseId property bool myBool: false Group { qbs.install: { console.error("Test:" + baseId.myBool + " " + myBool) return baseId.myBool } fileTagsFilter: ["qml"] } }
SubProduct.qbs
import "BaseProduct.qbs" as BaseProduct BaseProduct { myBool: true }
The error message shows "Test:false true" instead of "Test:true true". It's a bit confusing since baseId.myBool and myBool should be accessing the same property. Why do they have two different values?
Attachments
Issue Links
- relates to
-
QBS-1262 IDs are not inherited which causes asserts when referenced by other items
- Closed
For Gerrit Dashboard: QBS-1016 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
196397,2 | Add failing test for QBS-1016 | 1.8 | qbs/qbs | Status: MERGED | +2 | 0 |
216651,4 | Fix id pointer of base items | master | qbs/qbs | Status: MERGED | +2 | 0 |