summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/functionAssignment.2.qml
blob: 948b39c1479cf6776cc65160e8daa42970cfb2f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Qt.test 1.0

MyQmlObject {
    property variant a
    property bool runTest: false
    onRunTestChanged: {
        function myFunction() {
            console.log("hello world");
        }
        a = myFunction;
    }

}