diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/funcWithParams.qml')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/funcWithParams.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/funcWithParams.qml b/tests/auto/qml/qmlcppcodegen/data/funcWithParams.qml new file mode 100644 index 0000000000..b0c9780463 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/funcWithParams.qml @@ -0,0 +1,7 @@ +pragma Strict +import QtQml + +QtObject { + function foo(a: int) : int { return a + 10 } + property int bar: foo(10 + 10) +} |
