aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/mergedObjectRead.qml
blob: 161e21e643fea356343d4bc6d302515c2be39cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pragma Strict
import QtQuick

Item {
    objectName: "a"

    function f(arg: Item) : string {
        // Read arg as QtObject and Item, merged into QtObject.
        console.log(arg)
        return arg.x
    }

    Component.onCompleted: objectName = f(null)
}