aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/getSet.qml
blob: 2987986b385bf7d77312366b957a445531945b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import QtQuick 2.0

QtObject {
    function get(x) { return 1; }
    function set(x) { return 1; }
    function code() {
        var get = 0;
        var set = 1;
        var o = {
            get foo() { return 2; },
            set foo(x) { 1; }
        }
    }
}