aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/ambiguousAs.qml
blob: 2b7cbd593d29ee83159408d30015e7471690fc23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
    }
}