aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/toString.qml
blob: a4424c42b319fad67f36fc9697e2c8cb89498a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQml

QtObject {
    id: self
    property QtObject other: QtObject {
        function toString() : string { throw "no" }
    }

    function toString() : string { return "yes" }

    property string yes: self + " yes"
    property string no: other + " no"
}