qtdeclarative/tests/auto/qml/qmlcppcodegen/data/ambiguousAs.qml

16 lines
241 B
QML
Raw Permalink Normal View History

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
}
}