Details
Description
Consider the following. In A.qbs:
Product { property bool cpp }
In another file:
A {
cpp.blubb: "x"
}
qbs runs this successfully without producing an error message.
There is code that is supposed to handle such issues in ItemReaderASTVisitor::targetItemForBinding(), but it has no effect because visit(UiScriptBinding *) is called before inheritance is resolved, so the property "cpp" inherited from A is not in the item's list of properties yet and thus no conflict can be detected.
Attachments
For Gerrit Dashboard: QBS-847 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
122905,3 | Add XFAILing autotest for newly discovered bug. | 1.4 | qbs/qbs | Status: MERGED | +2 | 0 |
163827,2 | Yield error on misused inherited properties | 1.6 | qbs/qbs | Status: MERGED | +2 | 0 |