Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / propertyVar.11.qml
1 import QtQuick 2.0
2
3 Item {
4     property bool test: false
5     property var fnResult: testFunction(5)
6     property var f1: testFunction
7     property var f2
8
9     function testFunction(x) {
10         return x;
11     }
12
13     Component.onCompleted: {
14         f2 = testFunction;
15         if (fnResult != 5) return;
16         if (f1(6) != 6) return;
17         if (f2(7) != 7) return;
18         if (f1 != f2) return;
19         test = true;
20     }
21 }