diff options
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/assignFunctionThroughAliasToVarProperty.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/assignFunctionThroughAliasToVarProperty.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/assignFunctionThroughAliasToVarProperty.qml b/tests/auto/qml/qqmlecmascript/data/assignFunctionThroughAliasToVarProperty.qml new file mode 100644 index 0000000000..96b55af9d4 --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/assignFunctionThroughAliasToVarProperty.qml @@ -0,0 +1,9 @@ +import QtQuick 2.15 + +Item { + id: root + property alias bar: root.foo + property var foo: function() { return false } + + Component.onCompleted: root.bar = function() { return true } +} |