diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/ambiguousAs.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/ambiguousAs.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/ambiguousAs.qml b/tests/auto/qml/qmlcppcodegen/data/ambiguousAs.qml new file mode 100644 index 0000000000..2b7cbd593d --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/ambiguousAs.qml @@ -0,0 +1,15 @@ +pragma Strict +import QtQml + +QtObject { + id: self + property bool useSelf: true + property QtObject other: { + var a; + if (useSelf) + a = self + else + a = 15 + return a as QtObject + } +} |