aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/include_pragma_shadow.qml
blob: 7cac09d34274725c66f32d4216b18e9c7dc03f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import QtQuick 2.0
import "include_pragma_shadow.js" as Shadowed
import "include_pragma_shadow.js" as Other

Item {
    property bool result

    Component.onCompleted: {
        result = false;
        var global = (function(){return this})()
        if (Shadowed.Shadowed === 2 && Other.Shadowed === 2 && global.Shadowed === 1)
            result = true;
    }
}