tests/auto/declarative/qdeclarativeecmascript/data/functionAssignment.2.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt.test 1.0
       
     2 
       
     3 MyQmlObject {
       
     4     property variant a
       
     5     property bool runTest: false
       
     6     onRunTestChanged: {
       
     7         function myFunction() {
       
     8             console.log("hello world");
       
     9         }
       
    10         a = myFunction;
       
    11     }
       
    12 
       
    13 }