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