summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/propertyAssignmentErrors.qml
blob: c66f0715a195d119fa6e2117cf212eaf8c7818fc (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.6

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);
        }
    }
}