Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.5, 6.4.0 RC1
-
de2d7cba76 (qt/qtdeclarative/dev) de2d7cba76 (qt/tqtc-qtdeclarative/dev)
Description
Consider:
import QtQuick
QtObject {
property font f
function doEvil(ff: font) { ff.pointSize = 22 }
Component.onCompleted: doEvil(f)
}
f.pointSize should end up being 22, but when compiled ahead of time it will be 0. That is because the doEvil() function is called with a simple value type wrapper, not a value type reference as it should be.
We need to avoid passing and returning of value types in AOT-compiled code until this is fixed.