aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc_qprocess/data/inlineComponentInvalidAlias.qml
blob: 30ba6ad0bbbcc4d0c325373e293623fb9acf5229 (plain)
1
2
3
4
5
6
7
8
9
10
11
import QtQuick 2.15

// tests that inline components get their own context

Item {
    id: root
    property string hello: "hello"
    component MyComponent: Item {
        property alias myHello: root.hello // not allowed: accessing stuff from outside component
    }
}