aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/jsimportfail/importPragmaLibrary.js
blob: ad0e6946a27fec9063c0effe296f1703de389f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
.pragma library

// .pragma library, so shouldn't inherit imports from any .qml file.
function importValue() {
    var i = 3;
    var errorIsOne = Component.error == 1; // this line should fail.
    if (errorIsOne == true) {
        i = i + 4;
    }
    return i;
}