aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/renameAdjust.qml
blob: 9352163ba7dfb9f91fbe0de6aa5b34f8bf172682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pragma Strict
import QtQml

QtObject {
    id: last
    property int value: 10

    function verify(i: int) {
        if (last.value !== i)
            console.error("failed", last.value, i);
        else
            console.log("success")
    }

    Component.onCompleted: {
        verify(10)
        verify(11)
    }
}