summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/propertyAssignmentErrors.qml
blob: bef40fd44b1fc5a5ddf9ecb1c3ed4b95ea70a77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Qt 4.7

QtObject {
    id: root

    property int a
    property variant b

    Component.onCompleted: {
        try {
            root.a = undefined;
        } catch(e) {
            console.log (e.fileName + ":" + e.lineNumber + ":" + e);
        }

        try {
            root.a = "Hello";
        } catch(e) {
            console.log (e.fileName + ":" + e.lineNumber + ":" + e);
        }
    }
}