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

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