4
property bool test: false
6
property var items: [1, 2, 3, "four", "five"]
7
property int bound: items[0]
8
property var funcs: [(function() { return 6; })]
9
property int bound2: funcs[0]()
11
function returnTwenty() {
15
Component.onCompleted: {
16
if (bound != 1) return false;
17
if (bound2 != 6) return false;
19
items = [10, 2, 3, "four", "five"] // bound should now be 10
20
funcs = [returnTwenty] // bound2 should now be 20
22
if (bound != 10) return false;
23
if (bound2 != 20) return false;