qtdeclarative/tests/auto/qml/qqmlecmascript/data/propertyVar.11.qml

22 lines
425 B
QML

import QtQuick 2.0
Item {
property bool test: false
property var fnResult: testFunction(5)
property var f1: testFunction
property var f2
function testFunction(x) {
return x;
}
Component.onCompleted: {
f2 = testFunction;
if (fnResult != 5) return;
if (f1(6) != 6) return;
if (f2(7) != 7) return;
if (f1 != f2) return;
test = true;
}
}