aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/imports-conflict/modules/themodule/m.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-07-27 13:52:52 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-11-24 09:33:50 +0000
commitd94ba7080d32050d7c5d12d9cf03ecb7b9b7ff46 (patch)
tree3db66e14f3349fd4cf6680da7a27770e42cb4718 /tests/auto/blackbox/testdata/imports-conflict/modules/themodule/m.qbs
parent37e722e9d879bbabc714046d24005b173300557f (diff)
Separate file scope and imports scope
When evaluating, imported names need to have a higher precedence than names in the item scope, as otherwise they can clash with dependencies of the product (see bug report and autotest). We cannot simply move the file scope's precedence up, because in addition to imports and the "file" and "filePath" properties, it also potentially contains ids from e.g. a module prototype, which would then override the respective entry in the module scope. Task-number: QBS-930 Change-Id: Ifb8b7c933225f872ccc3e878b2bf01b7b0ac0f99 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/imports-conflict/modules/themodule/m.qbs')
-rw-r--r--tests/auto/blackbox/testdata/imports-conflict/modules/themodule/m.qbs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/imports-conflict/modules/themodule/m.qbs b/tests/auto/blackbox/testdata/imports-conflict/modules/themodule/m.qbs
new file mode 100644
index 000000000..48145d380
--- /dev/null
+++ b/tests/auto/blackbox/testdata/imports-conflict/modules/themodule/m.qbs
@@ -0,0 +1,5 @@
+import "utils.js" as Utils
+
+Module {
+ validate: { Utils.helper(); }
+}