aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/TypeAnnotationCycle1.qml
blob: 6186faa00b6b3c8f484928106e6e7e494ce047a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import QtQml

QtObject {
    id: self
    property QtObject b
    property Component c
    function a() : TypeAnnotationCycle2 { return c.createObject() as TypeAnnotationCycle2 }

    Component.onCompleted: {
        c = Qt.createComponent("TypeAnnotationCycle2.qml");
        let v = a();
        v.addTypeAnnotationCycle1(self as TypeAnnotationCycle1);
        b = v.b;
    }
}