Details
Description
I have a binding to an array reduce function, looking like that:
Item { property int preferredHeight: mainItem.children.reduce(maximumImplicitHeightReducer, 0) + topPadding + bottomPadding function maximumImplicitHeightReducer(accumulator: real, item: Item): real { return Math.max(accumulator, item.implicitHeight); }
This generates the attached crash log on startup.
If i replace the call to the function maximumImplicitHeightReducer to an inline arrow function like that:
property int preferredHeight: mainItem.children.reduce((accumulator, item) => { return Math.max(accumulator, item.implicitHeight); }, 0) + topPadding + bottomPadding
then the crash goes away
Attachments
Issue Links
- relates to
-
QTBUG-119885 Function signatures are insufficiently enforced
- Closed