blob: 63be26717ee85f8860508a73c43ee496be2aef87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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;
}
}
|