aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/goodAttachedPropertyAccess.qml
blob: b7f64d9acbc8a7f09eb22dca74ff7de21775d40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import AttachedProperties 1.0
QtObject {
    id: root
    TestType.object: QtObject {
        property int progress: 42
    }

    Component.onCompleted: {
        // NB: this currently fails as TestType.object is recognized as QtObject
        // *exactly*, ignoring the QML code above and thus there's no 'progress'
        // property on TestType.object
        console.log(TestType.object.progress);
    }
}