summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
blob: d39b31270857f68cd910d59045100222e5f7f7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Qt.test 1.0

MyQmlObject {
    Script { source: "scriptErrors.js" }
    Script { function getValue() { a = 10; return 0; } }

    property int x: a.value
    property int y: getValue();

    onBasicSignal: { print(a.value); }
}