aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/bindingLoopLazyLazy.qml
blob: c054282f93f1e3d3be6f3b226fbfb395825fc502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import test
import QtQml

BindingLoop {
    id: loop
    value: value2 + 1
    value2: value + 1

    Component.onCompleted: {
        let x = loop.value2 // if we do not read the value, we don't detect the loop...
    }
}