aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/tryStatement.4.qml
blob: 231aaf068332625dbdb80a5aa14071b7b8987581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Qt.test 1.0

MyQmlObject {
    property int defaultValue: 123

    function go() {
        return 321
    }

    value: try { var p = go() } catch(e) { var p = defaultValue } finally { p == 321 }
}